FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CRandom.h
1#ifndef CRandom_H
2#define CRandom_H
58#include "CSrcBase.h"
59#include <fhsim/simobject/SimObject.h>
60#include <random>
61#include <string>
62#include <vector>
63
64
76class CRandom : public CSrcBase
77{
78 public:
80 CRandom(std::string sSimObjectName, ISimObjectCreator* pCreator);
81 ~CRandom();
82
83 void AcceptedStep(const double T, const double* const X) override;
84
85 private:
86 void CalcOutput(const double dTime, const double* const adX);
88 void DrawRandomNumbers();
89
90
92 bool m_bConstRandom;
94 std::mt19937 m_Generator;
96 std::vector<double> m_Random;
98 std::vector<double> m_RandomMin;
100 std::vector<double> m_RandomMax;
101};
102
103
104#endif
Definition CRandom.h:77
CRandom(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
Definition CSrcBase.h:25