YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
RandVector.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_RANDVECTOR_H
8#define YARP_MATH_RANDVECTOR_H
9
10#include <yarp/sig/Vector.h>
12#include <yarp/math/api.h>
13
14namespace yarp::math::impl {
15class RandVector;
16}
17
23{
25 RandScalar rnd;
26
27private:
28 RandVector(const RandVector &l);
29
30public:
31 RandVector(int s);
32
33 void resize(int s);
34 void init();
35 void init(int seed);
36
37 const yarp::sig::Vector &get();
38 const yarp::sig::Vector &get(const yarp::sig::Vector &min, const yarp::sig::Vector &max);
39};
40
41#endif // YARP_MATH_RANDVECTOR_H
contains the definition of a Vector type
A random number generator, uniform in the range 0-1.
Definition RandScalar.h:27
A class to generate random vectors, uniform distribution.
Definition RandVector.h:23
const yarp::sig::Vector & get()
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_math_API
Definition api.h:17