ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
provsql::ConditionalScalarSamples Struct Reference

Outcome of a conditional Monte Carlo sampling pass. More...

#include "MonteCarloSampler.h"

Public Attributes

std::vector< double > accepted
unsigned attempted

Detailed Description

Outcome of a conditional Monte Carlo sampling pass.

accepted holds the root values from the iterations where event_root evaluated to true (the rest are rejected). attempted is the total number of iterations – equal to samples unless the pass was interrupted – so the caller can derive the empirical acceptance rate as accepted.size() / attempted for diagnostics.

Definition at line 139 of file MonteCarloSampler.h.

Member Data Documentation

◆ accepted

std::vector<double> provsql::ConditionalScalarSamples::accepted

Definition at line 140 of file MonteCarloSampler.h.

◆ attempted

unsigned provsql::ConditionalScalarSamples::attempted

Definition at line 141 of file MonteCarloSampler.h.


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