YARP
Yet Another Robot Platform
RandnVector.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* Copyright (C) 2006-2010 RobotCub Consortium
4
* All rights reserved.
5
*
6
* This software may be modified and distributed under the terms of the
7
* BSD-3-Clause license. See the accompanying LICENSE file for details.
8
*/
9
10
#ifndef YARP_MATH_RANDNVECTOR_H
11
#define YARP_MATH_RANDNVECTOR_H
12
13
#include <
yarp/sig/Vector.h
>
14
#include <
yarp/math/RandnScalar.h
>
15
#include <
yarp/math/api.h
>
16
17
namespace
yarp
{
18
namespace
math {
19
namespace
impl {
20
class
RandnVector
;
21
}
22
}
23
}
24
29
class
YARP_math_API
yarp
::
math::impl::RandnVector
30
{
31
yarp::sig::Vector
data;
32
RandnScalar
rnd;
33
RandnVector
(
const
RandnVector
&l){};
34
35
public
:
36
RandnVector
(
int
s);
37
38
void
resize
(
int
s);
39
void
init
();
40
void
init
(
int
seed);
41
42
const
yarp::sig::Vector
&
get
(
const
yarp::sig::Vector
&u,
const
yarp::sig::Vector
&sigma);
43
const
yarp::sig::Vector
&
get
(
double
u=0.0,
double
sigma=1.0);
44
};
45
46
#endif // YARP_MATH_RANDNSCALAR_H
Vector.h
contains the definition of a Vector type
yarp::math::impl::RandnVector::resize
void resize(int s)
Definition:
RandnVector.cpp:22
yarp::sig::VectorOf< double >
RandnScalar.h
yarp::math::impl::RandnVector::get
const yarp::sig::Vector & get(const yarp::sig::Vector &u, const yarp::sig::Vector &sigma)
Definition:
RandnVector.cpp:47
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
yarp::math::impl::RandnVector
A class to generate random vectors, normal distribution.
Definition:
RandnVector.h:30
YARP_math_API
#define YARP_math_API
Definition:
api.h:18
yarp::math::RandnScalar
A random number generator, normal distribution.
Definition:
RandnScalar.h:27
yarp::math::impl::RandnVector::init
void init()
Definition:
RandnVector.cpp:27
api.h
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_math
src
yarp
math
RandnVector.h
Generated on Sun Jan 3 2021 02:46:24 for YARP by
1.8.20