KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
Math::NormAccumulator< T > Class Template Reference

#include <metric.h>

Public Member Functions

 NormAccumulator (Real exponent=2.0)
 
void collect (T val)
 
void collect (T val, Real weight)
 
norm () const
 
normSquared () const
 
void operator<< (T val)
 
 operator T () const
 
template<>
void collect (Complex val)
 
template<>
void collect (Complex val, Real weight)
 

Public Attributes

Real exponent
 
data
 

Detailed Description

template<class T>
class Math::NormAccumulator< T >

A class that can generate norms for arbitrary amounts of streaming data without storing the data in memory.


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