# Copyright 2005-2019 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# 
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
#

meta dirty_statistics dirty(computeStatistics) ;
when (changed(values)) { set dirty_statistics=1;}

meta computeStatistics statistics(missingValue,values);

meta maximum vector(computeStatistics,0) : dump;
meta minimum vector(computeStatistics,1) : dump;
meta average vector(computeStatistics,2) : dump;
#meta numberOfMissing vector(computeStatistics,3) : dump;
meta numberOfMissing count_missing(bitmap,unusedBitsInBitmap,numberOfDataPoints) : dump;
meta standardDeviation vector(computeStatistics,4) : dump;
meta skewness   vector(computeStatistics,5) : dump;
meta kurtosis   vector(computeStatistics,6) : dump;
meta isConstant vector(computeStatistics,7) : dump;

alias numberOfMissingValues=numberOfMissing;

alias statistics.avg = average;
alias statistics.max = maximum;
alias statistics.min = minimum;
alias statistics.sd = standardDeviation;
alias statistics.skew = skewness;
alias statistics.kurt = kurtosis;
alias statistics.const = isConstant;
