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

◆ StochasticContext()

MayaFlux::Nodes::Generator::Stochastics::StochasticContext::StochasticContext ( double  value,
Utils::distribution  type,
double  amplitude,
double  range_start,
double  range_end,
double  normal_spread 
)
inline

Constructs a StochasticContext 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 Stochastic.hpp.

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