Diana Software
Functions
QVectorTools::Random Namespace Reference

Useful functions for random data. More...

Functions

Diana::QVector Gauss (UInt_t Size, double mean=0, double std=1.)
 
Diana::QVector Uniform (UInt_t Size, double max=1)
 Return a uniform distributed vector of size Size. More...
 
Diana::QVector Uniform (UInt_t Size, double min, double max)
 Return a uniform distributed vector of size Size. More...
 
Diana::QVector NoiseWaveformFromANPS (const Diana::QVector &anps)
 Build a noise waveform from an ANPS. More...
 

Detailed Description

Useful functions for random data.

Function Documentation

◆ Gauss()

Diana::QVector QVectorTools::Random::Gauss ( UInt_t  Size,
double  mean = 0,
double  std = 1. 
)

brief Return a vector of size Size gaussian distributed about mean with std

◆ NoiseWaveformFromANPS()

Diana::QVector QVectorTools::Random::NoiseWaveformFromANPS ( const Diana::QVector &  anps)

Build a noise waveform from an ANPS.

Builds a random noise waveform given a particular expected ANPS. The magnitude of the freqeuncy components are chosen such that they will on average look like the ANPS, and the phases are random and uncorrelated.

◆ Uniform() [1/2]

Diana::QVector QVectorTools::Random::Uniform ( UInt_t  Size,
double  max = 1 
)

Return a uniform distributed vector of size Size.

◆ Uniform() [2/2]

Diana::QVector QVectorTools::Random::Uniform ( UInt_t  Size,
double  min,
double  max 
)

Return a uniform distributed vector of size Size.