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

◆ Random()

MayaFlux::Nodes::Generator::Random::Random ( Kinesis::Stochastic::Algorithm  type = Kinesis::Stochastic::Algorithm::UNIFORM)

Constructor for the stochastic generator.

Parameters
typeDistribution type to use (default: uniform distribution)

Creates a stochastic generator with the specified probability distribution. The generator is initialized with entropy from the system's random device for non-deterministic behavior across program executions.

Definition at line 5 of file Nodes/Generators/Random.cpp.

6 : m_generator(type)
7 , m_type(type)
10{
11}
Kinesis::Stochastic::Stochastic m_generator
Core stochastic generator instance.
double m_normal_spread
Variance parameter for normal distribution.
Kinesis::Stochastic::Algorithm m_type
Current probability distribution algorithm.
double m_current_start
Lower bound of the current output range.
double m_current_end
Upper bound of the current output range.
std::span< const float > get_gpu_data_buffer() const
Provides access to the GPU data buffer.
Definition Node.cpp:78