Noisy sinc function: y = sin(x) / x + noise. More...
#include <shark/Data/DataDistribution.h>
Public Member Functions | |
Wave (double stddev=0.1, double range=5.0) | |
void | draw (RealVector &input, RealVector &label) const |
Generates a single pair of input and label. More... | |
Public Member Functions inherited from shark::LabeledDataDistribution< RealVector, RealVector > | |
virtual | ~LabeledDataDistribution () |
Virtual destructor. More... | |
std::pair< RealVector, RealVector > | operator() () |
LabeledData< RealVector, RealVector > | generateDataset (std::size_t size, std::size_t maximumBatchSize) const |
Generates a dataset with samples from from the distribution. More... | |
LabeledData< RealVector, RealVector > | generateDataset (std::size_t size) const |
Generates a data set with samples from from the distribution. More... | |
Protected Attributes | |
double | m_stddev |
double | m_range |
Noisy sinc function: y = sin(x) / x + noise.
Definition at line 186 of file DataDistribution.h.
|
inline |
Definition at line 189 of file DataDistribution.h.
|
inlinevirtual |
Generates a single pair of input and label.
input | the generated input |
label | the generated label |
Implements shark::LabeledDataDistribution< RealVector, RealVector >.
Definition at line 195 of file DataDistribution.h.
References shark::random::gauss(), shark::random::globalRng, and shark::random::uni().
|
protected |
Definition at line 207 of file DataDistribution.h.
|
protected |
Definition at line 206 of file DataDistribution.h.