MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ RandomContext()

MayaFlux::Nodes::Generator::RandomContext::RandomContext ( double  value,
Kinesis::Stochastic::Algorithm  type,
double  amplitude,
double  range_start,
double  range_end,
double  normal_spread 
)
inline

Constructs a RandomContext with the current generator state.

Parameters
valueCurrent output sample value
typeCurrent probability distribution algorithm
amplitudeCurrent scaling factor for output values
range_startLower bound of the current output range
range_endUpper bound of the current output range
normal_spreadVariance parameter for normal distribution

Creates a context object that provides a complete snapshot of the stochastic generator's current state, including its most recent output value and all parameters that define its statistical behavior.

Definition at line 40 of file Nodes/Generators/Random.hpp.

42 : NodeContext(value, typeid(RandomContext).name())
43 , distribution_type(type)
48 {
49 }
double normal_spread
Current variance parameter for normal distribution.
double amplitude
Current amplitude scaling factor.
double range_end
Current upper bound of the range.
double range_start
Current lower bound of the range.
Kinesis::Stochastic::Algorithm distribution_type
Current distribution type.
NodeContext(double value, std::string type)
Protected constructor for NodeContext.
Definition Node.hpp:85
double value
Current sample value.
Definition Node.hpp:40