aboutsummaryrefslogtreecommitdiff
path: root/src/sampling/random.hpp
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-01-17 00:09:15 +0100
committerJulian T <julian@jtle.dk>2021-01-17 00:09:15 +0100
commit94217187eb2785939458f08d96c7b1b9e55439ab (patch)
treeb10e4ab95f213b13b90ac5e0053ed9e92f973693 /src/sampling/random.hpp
parented14718ff073e285374fad2d3471552b9b497825 (diff)
Minor changed and draft for random samplingold_rework
Diffstat (limited to 'src/sampling/random.hpp')
-rw-r--r--src/sampling/random.hpp18
1 files changed, 18 insertions, 0 deletions
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 <core/random.hpp>
+
+class RandomSampler : public Sampler {
+ public:
+ RandomSampler(long samples, int seed = 0);
+
+ double getSample();
+ Vec2d get2dSample();
+
+ private:
+ Random m_rng;
+};
+
+#endif