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

◆ set_algorithm()

void MayaFlux::Kinesis::Stochastic::Stochastic::set_algorithm ( Algorithm  algo)

Changes active algorithm.

Parameters
algoNew generation algorithm

Resets internal state when switching algorithms.

Definition at line 23 of file Stochastic.cpp.

24{
25 if (m_algorithm != algo) {
26 m_algorithm = algo;
28 m_dist_dirty = true;
29 }
30}
void reset_state()
Resets internal state for stateful algorithms.

References m_algorithm, m_dist_dirty, and reset_state().

Referenced by MayaFlux::Nodes::Generator::Random::set_type().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: