Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
storm::pomdp::beliefs::detail Namespace Reference

Classes

struct  NextStateGeneratorHandle
 Implementation of the NextStateGeneratorHandle. More...

Functions

double reprValue (double const &val)
storm::RationalNumber reprValue (storm::RationalNumber const &val)

Variables

constexpr double NumericPrecisionFactor = 1e14
 Used to decide whether two belief values are equal.

Function Documentation

◆ reprValue() [1/2]

double storm::pomdp::beliefs::detail::reprValue ( double const & val)

Definition at line 19 of file BeliefNumerics.cpp.

◆ reprValue() [2/2]

storm::RationalNumber storm::pomdp::beliefs::detail::reprValue ( storm::RationalNumber const & val)

Definition at line 23 of file BeliefNumerics.cpp.

Variable Documentation

◆ NumericPrecisionFactor

double storm::pomdp::beliefs::detail::NumericPrecisionFactor = 1e14
constexpr

Used to decide whether two belief values are equal.

Two values x,y are equal if round(x * NumericPrecisionFactor) == round(y * NumericPrecisionFactor), where the factor is 1e14. Thus, a high value means that we are more precise. This is only relevant if beliefs are represented using an inexact data type like double

Definition at line 17 of file BeliefNumerics.cpp.