Skip to content
Snippets Groups Projects
Commit 36f9abd4 authored by MaximilienNaveau's avatar MaximilienNaveau
Browse files

remove useless function

parent 264610f1
No related branches found
No related tags found
No related merge requests found
Subproject commit e5b52669621f961014f1e395d99643bdc662883a
Subproject commit 370de4f4f8ca6122c7ddc13583a7a9465ccc8ad6
......@@ -82,26 +82,6 @@ enum Profiles_t {
PROFIL_NAVEAU_ONLINE_WALKING // 1
};
///gets White Gaussian Noise
///having a given bias and standard deviation(std)
double getWGNoise( double std, double bias)
{
std::random_device rd;
std::mt19937 gen(rd());
// values near the mean are the most likely
// standard deviation affects the dispersion of generated values from the mean
std::normal_distribution<> d(std,bias);
std::map<int, int> hist;
for(int n=0; n<10000; ++n) {
++hist[std::round(d(gen))];
}
for(auto p : hist) {
std::cout << std::fixed << std::setprecision(1) << std::setw(2)
<< p.first << ' ' << std::string(p.second/200, '*') << '\n';
}
}
class IO_TextFile
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment