ONE - On-device Neural Engine
|
Generate a sequence of random values according to the gaussian(=normal) distribution. More...
#include <Gaussian.h>
Public Member Functions | |
GaussianFloat32DataChef (float mean, float stddev) | |
std::vector< uint8_t > | generate (int32_t count) const override |
Generate a sequence of 'count' elements as a byte sequence. | |
Public Member Functions inherited from souschef::DataChef | |
virtual | ~DataChef ()=default |
Generate a sequence of random values according to the gaussian(=normal) distribution.
Definition at line 28 of file Gaussian.h.
|
inline |
Definition at line 31 of file Gaussian.h.
|
overridevirtual |
Generate a sequence of 'count' elements as a byte sequence.
Let D be the return value of generate(N). Then, D.size() == N * sizeof(T) where T is the element type.
Implements souschef::DataChef.
Definition at line 70 of file Gaussian.cpp.