![]() |
Project
|
#include <RandomRing.h>
Public Types | |
enum class | RandomType : char { Gaus , Flat , CustomTF1 , CustomLambda } |
Public Member Functions | |
RandomRing (const RandomType randomType=RandomType::Gaus) | |
RandomRing (TF1 &function) | |
void | initialize (const RandomType randomType=RandomType::Gaus) |
void | initialize (TF1 &function) |
void | initialize (std::function< float()> function) |
float | getNextValue () |
template<typename VcType > | |
VcType | getNextValueVc () |
unsigned int | getRingPosition () const |
Definition at line 45 of file RandomRing.h.
|
strong |
Enumerator | |
---|---|
Gaus | Gaussian distribution. |
Flat | Flat distribution. |
CustomTF1 | Custom TF1 function to be used. |
CustomLambda | Initialized through external lambda. |
Definition at line 48 of file RandomRing.h.
|
inline |
constructor
[in] | randomType | type of the random generator |
Definition at line 126 of file RandomRing.h.
|
inline |
constructor accepting TF1
[in] | function | TF1 function |
Definition at line 136 of file RandomRing.h.
|
inline |
next random value from the ring buffer This function return a value from the ring buffer and increases the buffer position
Definition at line 79 of file RandomRing.h.
|
inline |
next vector with random values This function retuns a Vc vector with random numbers to be used for vectorised programming and increases the buffer position by the size of the vector
Definition at line 95 of file RandomRing.h.
|
inline |
position in the ring buffer
Definition at line 111 of file RandomRing.h.
|
inline |
initialisation of the random ring
[in] | randomType | type of the random generator |
Definition at line 145 of file RandomRing.h.
|
inline |
initialisation of the random ring
[in] | randomType | type of the random generator |
Definition at line 179 of file RandomRing.h.
|
inline |
initialisation of the random ring
[in] | randomType | type of the random generator |
Definition at line 169 of file RandomRing.h.