Noisy sinc function: y = sin(x) / x + noise. More...
#include <shark/Data/DataDistribution.h>
Inheritance diagram for shark::Wave: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. | |
Public Member Functions inherited from shark::LabeledDataDistribution< RealVector, RealVector > | |
| virtual | ~LabeledDataDistribution () |
| Virtual destructor. | |
| 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. | |
| LabeledData< RealVector, RealVector > | generateDataset (std::size_t size) const |
| Generates a data set with samples from from the distribution. | |
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, m_range, m_stddev, and shark::random::uni().
|
protected |
Definition at line 207 of file DataDistribution.h.
|
protected |
Definition at line 206 of file DataDistribution.h.