YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
RandnVector.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef YARP_MATH_RANDNVECTOR_H
8#define YARP_MATH_RANDNVECTOR_H
9
10#include <yarp/sig/Vector.h>
12#include <yarp/math/api.h>
13
15class RandnVector;
16}
17
23{
25 RandnScalar rnd;
26 RandnVector(const RandnVector &l){};
27
28public:
29 RandnVector(int s);
30
31 void resize(int s);
32 void init();
33 void init(int seed);
34
35 const yarp::sig::Vector &get(const yarp::sig::Vector &u, const yarp::sig::Vector &sigma);
36 const yarp::sig::Vector &get(double u=0.0, double sigma=1.0);
37};
38
39#endif // YARP_MATH_RANDNSCALAR_H
contains the definition of a Vector type
A random number generator, normal distribution.
Definition RandnScalar.h:22
A class to generate random vectors, normal distribution.
Definition RandnVector.h:23
const yarp::sig::Vector & get(const yarp::sig::Vector &u, const yarp::sig::Vector &sigma)
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_math_API
Definition api.h:17