Garfield++ 3.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
rnorm.h
Go to the documentation of this file.
1#ifndef RNORM_H
2#define RNORM_H
3
4#include "Garfield/Random.hh"
5
6// Generation of two random numbers distributed by normal distribution.
7// It is generator-independent. The two flat numbers are its parameters.
8
9namespace Heed {
10
11inline double rnorm_improved() { return Garfield::RndmGaussian(); }
12
13void rnorm_double(const double r1, const double r2, // flat random numbers
14 double &x1, double &x2); // results
15
16void rnorm_float(const float r1, const float r2, // flat random numbers
17 float &x1, float &x2); // results
18}
19
20#endif
double RndmGaussian()
Draw a Gaussian random variate with mean zero and standard deviation one.
Definition: Random.hh:24
Definition: BGMesh.cpp:6
double rnorm_improved()
Definition: rnorm.h:11
void rnorm_double(const double r1, const double r2, double &x1, double &x2)
Definition: rnorm.cpp:14
void rnorm_float(const float r1, const float r2, float &x1, float &x2)
Definition: rnorm.cpp:21