#include <shark/Data/DataDistribution.h>
Inheritance diagram for shark::DiagonalWithCircle:Public Member Functions | |
| DiagonalWithCircle (double radius=1.0, double noise=0.0) | |
| void | draw (RealVector &input, unsigned int &label) const |
| Generates a single pair of input and label. | |
Public Member Functions inherited from shark::LabeledDataDistribution< RealVector, unsigned int > | |
| virtual | ~LabeledDataDistribution () |
| Virtual destructor. | |
| std::pair< RealVector, unsigned int > | operator() () |
| LabeledData< RealVector, unsigned int > | generateDataset (std::size_t size, std::size_t maximumBatchSize) const |
| Generates a dataset with samples from from the distribution. | |
| LabeledData< RealVector, unsigned int > | generateDataset (std::size_t size) const |
| Generates a data set with samples from from the distribution. | |
Protected Attributes | |
| double | m_radius2 |
| double | m_noiselevel |
Definition at line 342 of file DataDistribution.h.
|
inline |
Definition at line 345 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, unsigned int >.
Definition at line 350 of file DataDistribution.h.
References shark::random::globalRng, m_noiselevel, m_radius2, and shark::random::uni().
|
protected |
Definition at line 374 of file DataDistribution.h.
Referenced by draw().
|
protected |
Definition at line 373 of file DataDistribution.h.
Referenced by draw().