lppl  v2.0.0
WeightedMean< typename, O, Ts > Class Template Reference

Computes the mean of the specified sample site with O(1) memory. More...

#include "query.hpp"

Inheritance diagram for WeightedMean< typename, O, Ts >:
Queryer< WeightedMean, double, O, Ts... > LogSumExpQ< double, O, Ts... > Queryer< LogSumExpQ, double, O, Ts... >

Public Member Functions

 WeightedMean (std::string address)
 
void clear ()
 
double emit ()
 
void update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts)
 
- Public Member Functions inherited from Queryer< WeightedMean, double, O, Ts... >
double emit ()
 Emits the result of the query.
 
void update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts)
 Updates the state of the queryer. More...
 
- Public Member Functions inherited from LogSumExpQ< double, O, Ts... >
void clear ()
 
double emit ()
 
void update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts)
 
- Public Member Functions inherited from Queryer< LogSumExpQ, double, O, Ts... >
double emit ()
 Emits the result of the query.
 
void update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts)
 Updates the state of the queryer. More...
 

Protected Attributes

std::string _address
 
double _mean
 

Additional Inherited Members

- Public Attributes inherited from LogSumExpQ< double, O, Ts... >
double _alpha
 
double _lse_weights
 
double _r
 

Detailed Description

template<typename, typename O, typename... Ts>
class WeightedMean< typename, O, Ts >

Computes the mean of the specified sample site with O(1) memory.


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