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

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

#include <yarp/math/RandVector.h>

Public Member Functions

 RandVector (int s)
 
void resize (int s)
 
void init ()
 
void init (int seed)
 
const yarp::sig::Vectorget ()
 
const yarp::sig::Vectorget (const yarp::sig::Vector &min, const yarp::sig::Vector &max)
 

Detailed Description

A class to generate random vectors, uniform distribution.

Internally uses the RandScalar class.

Definition at line 29 of file RandVector.h.

Constructor & Destructor Documentation

◆ RandVector()

RandVector::RandVector ( int  s)

Definition at line 17 of file RandVector.cpp.

Member Function Documentation

◆ get() [1/2]

const Vector & RandVector::get ( )

Definition at line 37 of file RandVector.cpp.

◆ get() [2/2]

const Vector & RandVector::get ( const yarp::sig::Vector min,
const yarp::sig::Vector max 
)

Definition at line 47 of file RandVector.cpp.

◆ init() [1/2]

void RandVector::init ( )

Definition at line 27 of file RandVector.cpp.

◆ init() [2/2]

void RandVector::init ( int  seed)

Definition at line 32 of file RandVector.cpp.

◆ resize()

void RandVector::resize ( int  s)

Definition at line 22 of file RandVector.cpp.


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