Fleet  0.0.9
Inference in the LOT
Public Types | Public Member Functions | Public Attributes | List of all members
StructuresToSamples Class Reference

#include <StructureToSamples.h>

Inheritance diagram for StructuresToSamples:
Inheritance graph
[legend]
Collaboration diagram for StructuresToSamples:
Collaboration graph
[legend]

Public Types

using key_type = std::pair< std::string, double >
 
using value_type = ReservoirSample< MyHypothesis >
 

Public Member Functions

key_type key (MyHypothesis &h)
 
decltype(M.begin()) begin ()
 
decltype(M.end()) end ()
 
size_t size () const
 
value_typeoperator[] (key_type &t)
 
void add (MyHypothesis &h)
 
void operator<< (MyHypothesis &h)
 
double max_posterior (const ReservoirSample< MyHypothesis > &rs)
 
void trim (const size_t N)
 
- Public Member Functions inherited from Singleton< StructuresToSamples >
 Singleton ()
 

Public Attributes

std::map< key_type, value_typeM
 
const size_t trim_at = 5000
 
const size_t trim_to = 1000
 
const double rounding_factor = 2.0
 

Detailed Description

Author
Steven Piantadosi
Date
10/04/22

Member Typedef Documentation

◆ key_type

using StructuresToSamples::key_type = std::pair<std::string,double>

◆ value_type

Member Function Documentation

◆ add()

void StructuresToSamples::add ( MyHypothesis h)
inline

◆ begin()

decltype(M.begin()) StructuresToSamples::begin ( )
inline

◆ end()

decltype(M.end()) StructuresToSamples::end ( )
inline

◆ key()

key_type StructuresToSamples::key ( MyHypothesis h)
inline

◆ max_posterior()

double StructuresToSamples::max_posterior ( const ReservoirSample< MyHypothesis > &  rs)
inline

◆ operator<<()

void StructuresToSamples::operator<< ( MyHypothesis h)
inline

◆ operator[]()

value_type& StructuresToSamples::operator[] ( key_type t)
inline

◆ size()

size_t StructuresToSamples::size ( ) const
inline

◆ trim()

void StructuresToSamples::trim ( const size_t  N)
inline

Member Data Documentation

◆ M

std::map<key_type,value_type> StructuresToSamples::M

◆ rounding_factor

const double StructuresToSamples::rounding_factor = 2.0

◆ trim_at

const size_t StructuresToSamples::trim_at = 5000

◆ trim_to

const size_t StructuresToSamples::trim_to = 1000

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