Carna  Version 3.3.2
Public Member Functions | Public Attributes | List of all members
Carna::base::math::Statistics< T > Struct Template Reference

Holds mean and variance of an characteristic. More...

#include <math.h>

Public Member Functions

 Statistics (T mean, T variance)
 Initializes with mean and variance.
 
 Statistics (std::size_t size, const std::function< T(std::size_t) > values)
 Computes statistics from size samples queried from values.
 
Statistics< T > & operator= (const Statistics< T > &other)
 Copies from other.
 
standardDeviation () const
 Computes the standard deviation.
 

Public Attributes

mean
 Holds the mean.
 
variance
 Holds the variance.
 

Detailed Description

template<typename T>
struct Carna::base::math::Statistics< T >

Holds mean and variance of an characteristic.

Definition at line 655 of file math.h.


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