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

◆ set_normal_spread()

void MayaFlux::Nodes::Generator::Stochastics::Random::set_normal_spread ( double  spread)

Sets the variance parameter for normal distribution.

Parameters
spreadNew variance value

For normal (Gaussian) distribution, this controls the statistical variance of the distribution. Higher values create greater entropy with more values in the extremes, while lower values concentrate values toward the center of the distribution.

Definition at line 120 of file Stochastic.cpp.

121{
122 if (spread != m_normal_spread) {
123 m_normal_spread = spread;
124 m_dist_dirty = true;
125 }
126}
double m_normal_spread
Variance parameter for normal distribution.

References m_dist_dirty, and m_normal_spread.