Added a Gaussian noise generator

This commit is contained in:
Christian Risi
2024-12-01 12:10:19 +00:00
parent 0c82f284e8
commit 44d6d9a84f
8 changed files with 83 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
#include <random>
#pragma once
class GaussianRNG {
private:
unsigned seed;
std::default_random_engine generator;
std::normal_distribution<float> distribution;
public:
GaussianRNG(float mean, float std_dev, unsigned seed);
GaussianRNG(float mean, float std_dev);
float generate();
};

View File

@@ -0,0 +1 @@
#include <GaussianRNG.h>