ONE - On-device Neural Engine
Loading...
Searching...
No Matches
souschef::GaussianUint4DataChef Class Referencefinal

#include <Gaussian.h>

Collaboration diagram for souschef::GaussianUint4DataChef:

Public Member Functions

 GaussianUint4DataChef (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
 

Detailed Description

Definition at line 124 of file Gaussian.h.

Constructor & Destructor Documentation

◆ GaussianUint4DataChef()

souschef::GaussianUint4DataChef::GaussianUint4DataChef ( float  mean,
float  stddev 
)
inline

Definition at line 127 of file Gaussian.h.

127 : _mean{mean}, _stddev{stddev}
128 {
129 // DO NOTHING
130 }

Member Function Documentation

◆ generate()

std::vector< uint8_t > souschef::GaussianUint4DataChef::generate ( int32_t  count) const
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 153 of file Gaussian.cpp.

154{
155 return generate_gaussian_with_minmax<uint8_t>(count, _mean, _stddev, 0, 15);
156}

The documentation for this class was generated from the following files: