ALPSCore reference
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
alps::alea::var_result< T, Strategy > Class Template Reference

#include <joined.hpp>

Collaboration diagram for alps::alea::var_result< T, Strategy >:
Collaboration graph

Public Types

typedef bind< Strategy, T >::value_type value_type
 
typedef bind< Strategy, T >::var_type var_type
 

Public Member Functions

 var_result ()
 
 var_result (const var_data< T, Strategy > &acc_data)
 
 var_result (const var_result &other)
 
var_resultoperator= (const var_result &other)
 
bool valid () const
 
size_t size () const
 
double batch_size () const
 
size_t count () const
 
double count2 () const
 
double observations () const
 
const column< T > & mean () const
 
column< var_typevar () const
 
column< var_typestderror () const
 
const var_data< T, Strategy > & store () const
 
var_data< T, Strategy > & store ()
 
void reduce (const reducer &r)
 

Protected Member Functions

void reduce (const reducer &, bool do_pre_commit, bool do_post_commit)
 

Friends

class var_acc< T, Strategy >
 
class autocorr_result< T >
 
void serialize (serializer &, const std::string &, const var_result &)
 
void deserialize (deserializer &, const std::string &, var_result &)
 
std::ostream & operator<< (std::ostream &, const var_result &)
 

Detailed Description

template<typename T, typename Strategy = circular_var>
class alps::alea::var_result< T, Strategy >

Result which contains mean and a naive variance estimate.

Definition at line 14 of file joined.hpp.

Member Typedef Documentation

template<typename T, typename Strategy = circular_var>
typedef bind<Strategy, T>::value_type alps::alea::var_result< T, Strategy >::value_type

Definition at line 206 of file variance.hpp.

template<typename T, typename Strategy = circular_var>
typedef bind<Strategy, T>::var_type alps::alea::var_result< T, Strategy >::var_type

Definition at line 207 of file variance.hpp.

Constructor & Destructor Documentation

template<typename T, typename Strategy = circular_var>
alps::alea::var_result< T, Strategy >::var_result ( )
inline

Definition at line 210 of file variance.hpp.

template<typename T, typename Strategy = circular_var>
alps::alea::var_result< T, Strategy >::var_result ( const var_data< T, Strategy > &  acc_data)
inline

Definition at line 212 of file variance.hpp.

template<typename T , typename Str >
alps::alea::var_result< T, Str >::var_result ( const var_result< T, Strategy > &  other)

Definition at line 213 of file variance.cpp.

Member Function Documentation

template<typename T, typename Strategy = circular_var>
double alps::alea::var_result< T, Strategy >::batch_size ( ) const
inline

Returns average batch size

Definition at line 227 of file variance.hpp.

template<typename T, typename Strategy = circular_var>
size_t alps::alea::var_result< T, Strategy >::count ( ) const
inline

Returns sample size, i.e., number of accumulated data points

Definition at line 230 of file variance.hpp.

template<typename T, typename Strategy = circular_var>
double alps::alea::var_result< T, Strategy >::count2 ( ) const
inline

Returns sum of squared sample sizes

Definition at line 233 of file variance.hpp.

template<typename T, typename Strategy = circular_var>
const column<T>& alps::alea::var_result< T, Strategy >::mean ( ) const
inline

Returns sample mean

Definition at line 239 of file variance.hpp.

template<typename T, typename Strategy = circular_var>
double alps::alea::var_result< T, Strategy >::observations ( ) const
inline

Returns effective number of observations

Definition at line 236 of file variance.hpp.

template<typename T , typename Str >
var_result< T, Str > & alps::alea::var_result< T, Str >::operator= ( const var_result< T, Strategy > &  other)

Definition at line 218 of file variance.cpp.

template<typename T, typename Strategy = circular_var>
void alps::alea::var_result< T, Strategy >::reduce ( const reducer r)
inline

Collect measurements from different instances using sum-reducer

Definition at line 258 of file variance.hpp.

template<typename T , typename Str >
void alps::alea::var_result< T, Str >::reduce ( const reducer r,
bool  do_pre_commit,
bool  do_post_commit 
)
protected

Definition at line 250 of file variance.cpp.

template<typename T, typename Strategy = circular_var>
size_t alps::alea::var_result< T, Strategy >::size ( ) const
inline

Number of components of the random vector (e.g., size of mean)

Definition at line 224 of file variance.hpp.

template<typename T , typename Str >
column< typename var_result< T, Str >::var_type > alps::alea::var_result< T, Str >::stderror ( ) const

Returns bias-corrected standard error of the mean

Definition at line 243 of file variance.cpp.

template<typename T, typename Strategy = circular_var>
const var_data<T,Strategy>& alps::alea::var_result< T, Strategy >::store ( ) const
inline

Return backend object used for storing estimands

Definition at line 252 of file variance.hpp.

template<typename T, typename Strategy = circular_var>
var_data<T,Strategy>& alps::alea::var_result< T, Strategy >::store ( )
inline

Return backend object used for storing estimands

Definition at line 255 of file variance.hpp.

template<typename T, typename Strategy = circular_var>
bool alps::alea::var_result< T, Strategy >::valid ( ) const
inline

Returns false if finalize() has been called, true otherwise

Definition at line 221 of file variance.hpp.

template<typename T, typename Strategy = circular_var>
column<var_type> alps::alea::var_result< T, Strategy >::var ( ) const
inline

Returns bias-corrected sample variance

Definition at line 246 of file variance.hpp.

Friends And Related Function Documentation

template<typename T, typename Strategy = circular_var>
friend class autocorr_result< T >
friend

Definition at line 276 of file variance.hpp.

template<typename T, typename Strategy = circular_var>
void deserialize ( deserializer ,
const std::string &  ,
var_result< T, Strategy > &   
)
friend

Convert result from a permanent format (write to disk etc.)

template<typename T, typename Strategy = circular_var>
std::ostream& operator<< ( std::ostream &  ,
const var_result< T, Strategy > &   
)
friend

Write some info about the result to a stream

template<typename T, typename Strategy = circular_var>
void serialize ( serializer ,
const std::string &  ,
const var_result< T, Strategy > &   
)
friend

Convert result to a permanent format (write to disk etc.)

template<typename T, typename Strategy = circular_var>
friend class var_acc< T, Strategy >
friend

Definition at line 275 of file variance.hpp.


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