Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

Real QuantLib::IncrementalStatistics::mean (  ) const

returns the mean, defined as

\[ \langle x \rangle = \frac{\sum w_i x_i}{\sum w_i}. \]

Definition at line 38 of file incrementalstatistics.cpp.

References QL_REQUIRE.

Referenced by kurtosis(), skewness(), and variance().

                   "sampleWeight_=0, unsufficient");
        return sum_/sampleWeight_;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index