lppl  v2.0.0
WeightedValue< std::unique_ptr< value_collection_t< V > >, O, Ts... > Class Template Reference
Inheritance diagram for WeightedValue< std::unique_ptr< value_collection_t< V > >, O, Ts... >:
Queryer< WeightedValue, std::unique_ptr< value_collection_t< V > >, O, Ts... > Weighted< std::unique_ptr< value_collection_t< V > >, O, Ts... > Queryer< Impl, V, O, Ts > LogSumExpQ< double, O, Ts... > Queryer< LogSumExpQ, double, O, Ts... >

Public Member Functions

 WeightedValue (std::string address)
 
void clear ()
 Resets the instance.
 
std::unique_ptr< value_collection_t< V > > emit ()
 
void update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts)
 
- Public Member Functions inherited from Queryer< WeightedValue, std::unique_ptr< value_collection_t< V > >, O, Ts... >
std::unique_ptr< value_collection_t< V > > 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 Weighted< std::unique_ptr< value_collection_t< V > >, O, Ts... >
void clear ()
 Resets all values associated with the queryer.
 
double lse_weights ()
 Returns \(\log Z = \log \sum_{1 \leq n \leq N} \exp w_n \). More...
 
void update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts)
 Computes \(\log Z = \log \sum_{1 \leq n \leq N} \exp w_n \). More...
 
- Public Member Functions inherited from Queryer< Impl, V, O, Ts >
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
 
std::vector< V > v
 

Additional Inherited Members

- Public Attributes inherited from Weighted< std::unique_ptr< value_collection_t< V > >, O, Ts... >
std::vector< double > w
 
- Public Attributes inherited from LogSumExpQ< double, O, Ts... >
double _alpha
 
double _lse_weights
 
double _r
 

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