YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
NormRand.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_NORMRAND_H
8#define YARP_MATH_NORMRAND_H
9
10#include <yarp/sig/Vector.h>
11#include <yarp/sig/Matrix.h>
12#include <yarp/math/Rand.h>
13#include <yarp/math/api.h>
14
15namespace yarp::math {
16
20class NormRand;
21} // namespace yarp::math
22
23
32{
33public:
34 static double scalar(double u=0.0, double sigma=1.0);
35 static yarp::sig::Vector vector(int s, double u=0.0, double sigma=1.0);
36 static yarp::sig::Vector vector(const yarp::sig::Vector &u, const yarp::sig::Vector &sigma);
37
38 static yarp::sig::Matrix matrix(int r, int c, double u=0.0, double sigma=1.0);
39
44 static void init();
45
51 static void init(int seed);
52};
53
54#endif // YARP_MATH_NORMRAND_H
contains the definition of a Matrix type
contains the definition of a Vector type
A static class grouping function for normal random number generator.
Definition NormRand.h:32
static void init()
Initialize the random number generator, with current time (time(0)).
Definition NormRand.cpp:54
static double scalar(double u=0.0, double sigma=1.0)
Definition NormRand.cpp:15
static yarp::sig::Vector vector(int s, double u=0.0, double sigma=1.0)
Definition NormRand.cpp:20
static yarp::sig::Matrix matrix(int r, int c, double u=0.0, double sigma=1.0)
Definition NormRand.cpp:42
A class for a Matrix.
Definition Matrix.h:39
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_math_API
Definition api.h:17