Crate deep_causality_uncertain

Crate deep_causality_uncertain 

Source
Expand description

Core components for the deep_causality_uncertain crate.

Modules§

sprt_eval

Structs§

BernoulliParams
Struct to hold the parameters for a Bernoulli distribution.
GlobalSampleCache
Thread-safe, global cache for sampled values.
MaybeUncertain
A first-class type representing a value that is probabilistically present or absent. If the value is present, its own value is uncertain.
NormalDistributionParams
Struct to hold the parameters for a Normal (Gaussian) distribution.
SequentialSampler
A basic, single-threaded sampler.
Uncertain
A type representing a value with inherent uncertainty, modeled as a probability distribution.
UniformDistributionParams
Struct to hold the parameters for a Uniform distribution.

Enums§

ArithmeticOperator
Defines binary arithmetic operations that take two f64 and return an f64.
ComparisonOperator
Defines binary comparison operations that take an f64 and return a bool.
DistributionEnum
LogicalOperator
Defines logical operations that take bool(s) and return a bool.
SampledValue
Represents a sampled value that can be either a floating-point number or a boolean.
UncertainError
Custom error type for the deep_causality_uncertain crate.
UncertainNodeContent

Traits§

FromSampledValue
IntoSampledValue
ProbabilisticType
SampledBindFn
SampledFmapFn
Sampler
A trait for sampling strategies.

Functions§

with_global_cache
Executes a closure with a reference to the global sample cache. This pattern is used to safely access thread-local storage without returning a reference that could outlive the scope of the thread-local data.

Type Aliases§

MaybeUncertainBool
MaybeUncertainF64
UncertainBool
UncertainF64