lppl  v2.0.0
particle.hpp File Reference
#include <functional>
#include <memory>
#include <utility>
#include <variant>
#include <distributions.hpp>
#include <query.hpp>
#include <record.hpp>

Typedefs

template<typename O , typename... Ts>
using FilterValueType = std::shared_ptr< record_collection_t< O, Ts... > >
 Type of values returned from filtering algorithms. More...
 

Functions

template<typename O , typename... Ts>
double aic (FilterValueType< O, Ts... > &cache)
 Computes the (approximate) Akaike Information Criterion (AIC) of the model. More...
 
template<typename O , typename... Ts>
std::vector< std::variant< Ts... > > dist (FilterValueType< O, Ts... > &cache, std::string address)
 Computes \(dist(r(a)) \sim D(r)\), where \(dist(r(a))\) is the distribution object associated with the address \(a\) and \(D(r)\) is the empirical unweighted distribution over records. More...
 
template<typename O , typename... Ts>
double mean (FilterValueType< O, Ts... > &cache, std::function< double(double &&)> &&map_, std::string address)
 Computes \(E_{r(a):\ r \sim D(r)}[f(r(a))]\), where \(D(r)\) is the empirical distribution over records and \( f: double -> double \). More...
 
template<typename O , typename... Ts>
double mean (FilterValueType< O, Ts... > &cache, std::string address)
 Computes mean with \(f = id \).
 
template<typename O , typename... Ts>
double score (FilterValueType< O, Ts... > &cache)
 Computes the score \( E_{r \sim D(r)}[\sum_{a: a\ observed} p(r(a))]\), where \(D(r)\) is the empirical unweighted distribution over records. More...
 
template<typename O , typename... Ts>
double stddev (FilterValueType< O, Ts... > &cache, std::function< double(double &&)> &&map_, std::string address)
 
template<typename O , typename... Ts>
double stddev (FilterValueType< O, Ts... > &cache, std::string address)
 
template<typename O , typename... Ts>
double variance (FilterValueType< O, Ts... > &cache, std::function< double(double &&)> &&map_, std::string address)
 
template<typename O , typename... Ts>
double variance (FilterValueType< O, Ts... > &cache, std::string address)
 

Detailed Description

Author
your name (you@d.nosp@m.omai.nosp@m.n.com)
Version
0.1
Date
2024-02-15