basic_statistics Class Template Reference

Collection of basic statistics such as min, max, mean, variance. More...

#include <basic_statistics.h>

List of all members.

Public Types

typedef FloatType float_type
typedef std::size_t size_type

Public Member Functions

 basic_statistics ()
 Default constructor. Some data members are not initialized!
 basic_statistics (af::const_ref< FloatType > values)
 Computation of all statistics.

Public Attributes

std::size_t n
 Number of values.
FloatType min
 Minimum of values.
FloatType max
 Maximum of values.
FloatType max_absolute
 Maximum of absolute values.
FloatType sum
 sum(values)
FloatType mean
 sum(values) / n
FloatType mean_absolute_deviation_from_mean
 sum(abs(value-mean)) / n
FloatType biased_variance
 sum((value-mean)**2) / n
FloatType biased_standard_deviation
 sqrt(sum((value-mean)**2) / n)
FloatType bias_corrected_variance
 sum((value-mean)**2) / (n-1)
FloatType bias_corrected_standard_deviation
 sqrt(sum((value-mean)**2) / (n-1))
FloatType skew
 (sum((value-mean)**3)/n) / (sum((value-mean)**2)/n)**(3/2)
FloatType kurtosis
 (sum((value-mean)**4)/n) / (sum((value-mean)**2)/n)**2
FloatType kurtosis_excess
 (sum((value-mean)**4)/n) / (sum((value-mean)**2)/n)**2 - 3


Detailed Description

template<typename FloatType = double>
class scitbx::math::basic_statistics< FloatType >

Collection of basic statistics such as min, max, mean, variance.

See also: http://mathworld.wolfram.com/Variance.html http://mathworld.wolfram.com/Kurtosis.html


Constructor & Destructor Documentation

basic_statistics ( af::const_ref< FloatType >  values  )  [inline]


The documentation for this class was generated from the following file:

Generated on Tue Sep 1 17:12:36 2009 for cctbx by  doxygen 1.5.6