From 94217187eb2785939458f08d96c7b1b9e55439ab Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 17 Jan 2021 00:09:15 +0100 Subject: Minor changed and draft for random sampling --- src/sampling/random.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/sampling/random.hpp (limited to 'src/sampling/random.hpp') diff --git a/src/sampling/random.hpp b/src/sampling/random.hpp new file mode 100644 index 0000000..d1acaa8 --- /dev/null +++ b/src/sampling/random.hpp @@ -0,0 +1,18 @@ +#ifndef SAMPLER_RANDOM_H +#define SAMPLER_RANDOM_H + +#include "sampler.hpp" +#include + +class RandomSampler : public Sampler { + public: + RandomSampler(long samples, int seed = 0); + + double getSample(); + Vec2d get2dSample(); + + private: + Random m_rng; +}; + +#endif -- cgit v1.2.3