Function lupnt::SampleNormal¶
Defined in File math_utils.cc
Function Documentation¶
-
Real lupnt::SampleNormal(Real mean = 0.0, Real std = 1.0, std::mt19937 *rng = nullptr)¶
Draw a single sample from a scalar normal distribution
N(mean, std^2).Used throughout example/scenario code to generate scalar noise realizations (e.g. for clock or measurement noise models).
- Parameters:
mean – Mean (default 0.0)
std – Standard deviation (default 1.0)
rng – Optional random engine; defaults to
lupnt::RandomEngine::Get()
- Returns:
Sampled value