Expand description
Core components for the deep_causality_uncertain crate.
Modules§
Structs§
- Bernoulli
Params - Struct to hold the parameters for a Bernoulli distribution.
- Global
Sample Cache - Thread-safe, global cache for sampled values.
- Maybe
Uncertain - A first-class type representing a value that is probabilistically present or absent. If the value is present, its own value is uncertain.
- Normal
Distribution Params - Struct to hold the parameters for a Normal (Gaussian) distribution.
- Sequential
Sampler - A basic, single-threaded sampler.
- Uncertain
- A type representing a value with inherent uncertainty, modeled as a probability distribution.
- Uniform
Distribution Params - Struct to hold the parameters for a Uniform distribution.
Enums§
- Arithmetic
Operator - Defines binary arithmetic operations that take two f64 and return an f64.
- Comparison
Operator - Defines binary comparison operations that take an f64 and return a bool.
- Distribution
Enum - Logical
Operator - Defines logical operations that take bool(s) and return a bool.
- Sampled
Value - Represents a sampled value that can be either a floating-point number or a boolean.
- Uncertain
Error - Custom error type for the
deep_causality_uncertaincrate. - Uncertain
Node Content
Traits§
- From
Sampled Value - Into
Sampled Value - Probabilistic
Type - Sampled
Bind Fn - Sampled
Fmap Fn - 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.