Public Member Functions

za_co_codespot::datastructures::Order2StatisticalConcept< T > Struct Template Reference

#include <Order2StatisticalConcept.h>

List of all members.

Public Member Functions

 BOOST_CONCEPT_USAGE (Order2StatisticalConcept)

Detailed Description

template<typename T>
struct za_co_codespot::datastructures::Order2StatisticalConcept< T >

A class that implements this concept allows second order statistics to be calculated for a sequence of values of this type, that is, the mean and variance.

Signed numbers such as int and float implement this concept.

A type that conforms to this concept supports the following operations: construction with 0 as parameter less than or equal comparisson assignment addition division by unsigned integers subtraction function sqr that squares the value.

Note:
Unsigned numbers, although they implement the concept, are still not suitable since they might return incorrect results for subtraction.
The sqr function will typically be implemented as x*x, but the concept does not assume this. The implementor is free to implement the sqr function anyway he (or she!) wants.

Definition at line 36 of file Order2StatisticalConcept.h.


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