shark::NormalDistributedPoints Class Reference

Generates a set of normally distributed points. More...

#include <shark/Data/DataDistribution.h>

+ Inheritance diagram for shark::NormalDistributedPoints:

Public Member Functions

 NormalDistributedPoints (std::size_t dim)
 Generates a simple distribution with. More...
 
 NormalDistributedPoints (RealMatrix const &covariance, RealVector const &offset)
 
void draw (RealVector &input) const
 Generates a single pair of input and label. More...
 
- Public Member Functions inherited from shark::DataDistribution< RealVector >
virtual ~DataDistribution ()
 Virtual destructor. More...
 
RealVector operator() ()
 
UnlabeledData< RealVector > generateDataset (std::size_t size, std::size_t maximumBatchSize) const
 Generates a data set with samples from from the distribution. More...
 
UnlabeledData< RealVector > generateDataset (std::size_t size) const
 Generates a data set with samples from from the distribution. More...
 

Detailed Description

Generates a set of normally distributed points.

Definition at line 379 of file DataDistribution.h.

Constructor & Destructor Documentation

◆ NormalDistributedPoints() [1/2]

shark::NormalDistributedPoints::NormalDistributedPoints ( std::size_t  dim)
inline

Generates a simple distribution with.

Definition at line 383 of file DataDistribution.h.

References shark::covariance().

◆ NormalDistributedPoints() [2/2]

shark::NormalDistributedPoints::NormalDistributedPoints ( RealMatrix const &  covariance,
RealVector const &  offset 
)
inline

Definition at line 388 of file DataDistribution.h.

References SIZE_CHECK.

Member Function Documentation

◆ draw()

void shark::NormalDistributedPoints::draw ( RealVector &  input) const
inlinevirtual

Generates a single pair of input and label.

Parameters
inputthe generated input

Implements shark::DataDistribution< RealVector >.

Definition at line 392 of file DataDistribution.h.


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