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 407 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 411 of file DataDistribution.h.

References shark::covariance(), shark::blas::diag(), and shark::blas::repeat().

§ NormalDistributedPoints() [2/2]

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

Definition at line 416 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 420 of file DataDistribution.h.

References shark::blas::noalias().


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