blob: 5609ba35cafc5268e55fc47952ca2010cf7ba19b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Normaldistribution.h
*
* Created on: 20.05.2011
* Author: sven
*/
#ifndef NORMALDISTRIBUTION_H_
#define NORMALDISTRIBUTION_H_
#include "Parametrisation.h"
#include "CholeskyDecomposition.h"
#include <vector>
class Normaldistribution {
public:
Normaldistribution();
virtual ~Normaldistribution();
void calcRandomVector(const CholeskyMatrix& D, const std::vector<double>& mu , std::vector<double>& y);
private:
void calcStandardNormalDistributedRandomVector(const int size, std::vector<double>& u);
};
#endif /* NORMALDISTRIBUTION_H_ */
|