rehashing
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AdaptiveRS Class Reference

#include <AdaptiveRS.h>

Inheritance diagram for AdaptiveRS:
AdaptiveEstimator

Public Member Functions

 AdaptiveRS (shared_ptr< MatrixXd > data, shared_ptr< Kernel > k, double lb, double eps)
 
 AdaptiveRS (shared_ptr< MatrixXd > data, shared_ptr< Kernel > k, int samples, double lb, double eps)
 
- Public Member Functions inherited from AdaptiveEstimator
std::vector< double > query (VectorXd q)
 
void setMedians (int l)
 

Protected Member Functions

std::vector< double > evaluateQuery (VectorXd q, int level)
 

Protected Attributes

double lb
 
std::mt19937_64 rng
 
- Protected Attributes inherited from AdaptiveEstimator
int numPoints
 
double gamma = 0.5
 
int I
 
int L = 3
 
std::vector< double > mui
 
std::vector< int > Mi
 
std::vector< double > ti
 
std::vector< int > ki
 
std::vector< double > wi
 
double r
 
std::string EXP_STR = "exp"
 

Additional Inherited Members

- Public Attributes inherited from AdaptiveEstimator
double totalTime = 0
 

Detailed Description

Adaptive sampling via random sampling.

Constructor & Destructor Documentation

◆ AdaptiveRS() [1/2]

AdaptiveRS::AdaptiveRS ( shared_ptr< MatrixXd >  data,
shared_ptr< Kernel >  k,
double  lb,
double  eps 
)
Parameters
data
k
lbminimum density
epsrelative error

◆ AdaptiveRS() [2/2]

AdaptiveRS::AdaptiveRS ( shared_ptr< MatrixXd >  data,
shared_ptr< Kernel >  k,
int  samples,
double  lb,
double  eps 
)
Parameters
datadataset
kkernel
samplessize of random sample reservoir
lbminimum density
epsrelative error

Member Function Documentation

◆ evaluateQuery()

std::vector< double > AdaptiveRS::evaluateQuery ( VectorXd  q,
int  level 
)
protectedvirtual

For subclasses to implement: evaluate density of query q at the given level.

Implements AdaptiveEstimator.


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