rehashing
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
MoMEstimator Class Referenceabstract

#include <MoMEstimator.h>

Inheritance diagram for MoMEstimator:
RS SketchHBE UniformHBE

Public Member Functions

double query (VectorXd q, double lb, int m)
 

Public Attributes

double totalTime = 0
 

Protected Member Functions

virtual std::vector< double > MoM (VectorXd q, int L, int m)=0
 

Detailed Description

Base class for median-of-means estimators.

Member Function Documentation

◆ MoM()

virtual std::vector<double> MoMEstimator::MoM ( VectorXd  q,
int  L,
int  m 
)
protectedpure virtual
Parameters
qquery
Lmedian of L means
mmeans of m samples
Returns
: a vector of L elements, where each element is a sum of m samples

Implemented in SketchHBE, RS, and UniformHBE.

◆ query()

double MoMEstimator::query ( VectorXd  q,
double  lb,
int  m 
)
inline
Parameters
qquery
lblower bound of query density
mmeans of m samples
Returns
: estimate of query if it's > lb, otherwise 0

Member Data Documentation

◆ totalTime

double MoMEstimator::totalTime = 0

Timing variable


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