YARP
Yet Another Robot Platform
yarp::math::impl::RandnVector Class Reference

A class to generate random vectors, normal distribution. More...

#include <yarp/math/RandnVector.h>

Public Member Functions

 RandnVector (int s)
 
void resize (int s)
 
void init ()
 
void init (int seed)
 
const yarp::sig::Vectorget (const yarp::sig::Vector &u, const yarp::sig::Vector &sigma)
 
const yarp::sig::Vectorget (double u=0.0, double sigma=1.0)
 

Detailed Description

A class to generate random vectors, normal distribution.

Internally uses the RandnScalar class.

Definition at line 29 of file RandnVector.h.

Constructor & Destructor Documentation

◆ RandnVector()

RandnVector::RandnVector ( int  s)

Definition at line 17 of file RandnVector.cpp.

Member Function Documentation

◆ get() [1/2]

const Vector & RandnVector::get ( const yarp::sig::Vector u,
const yarp::sig::Vector sigma 
)

Definition at line 47 of file RandnVector.cpp.

◆ get() [2/2]

const Vector & RandnVector::get ( double  u = 0.0,
double  sigma = 1.0 
)

Definition at line 37 of file RandnVector.cpp.

◆ init() [1/2]

void RandnVector::init ( )

Definition at line 27 of file RandnVector.cpp.

◆ init() [2/2]

void RandnVector::init ( int  seed)

Definition at line 32 of file RandnVector.cpp.

◆ resize()

void RandnVector::resize ( int  s)

Definition at line 22 of file RandnVector.cpp.


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