lppl  v2.0.0
LogSumExpQ< typename, O, Ts > Struct Template Reference

Computes a streaming log-sum-exp. More...

#include "query.hpp"

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

Public Member Functions

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...
 

Public Attributes

double _alpha
 
double _lse_weights
 
double _r
 

Friends

double logsumexp_streaming (double &_alpha, double &_r, const double &weight)
 streaming logsumexp computation, see https://arxiv.org/abs/1805.02867 More...
 

Detailed Description

template<typename, typename O, typename... Ts>
struct LogSumExpQ< typename, O, Ts >

Computes a streaming log-sum-exp.

Template Parameters
V
O
Ts

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