Skip to content
Snippets Groups Projects
Commit d3bc541b authored by Niklas Schnierstein's avatar Niklas Schnierstein
Browse files

working

parent c9b81846
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ class ornstein_uhlenbeck_process{ ...@@ -32,7 +32,7 @@ class ornstein_uhlenbeck_process{
std::vector<double> aom; //absolute k value of modes std::vector<double> aom; //absolute k value of modes
std::random_device rd{}; std::random_device rd{};
std::mt19937 gen{rd()}; std::mt19937 gen{rd()}; //32-bit, maybe fix for double prec TODO
std::normal_distribution<double> d{0,1}; std::normal_distribution<double> d{0,1};
ornstein_uhlenbeck_process( ornstein_uhlenbeck_process(
...@@ -58,7 +58,7 @@ class ornstein_uhlenbeck_process{ ...@@ -58,7 +58,7 @@ class ornstein_uhlenbeck_process{
inline double gamma(double kabs) inline double gamma(double kabs)
{ {
//return kabs*sqrt(this->energy(kabs)); //return kabs*sqrt(this->energy(kabs));
return 0.3333; return kolmogorov_constant*sqrt(kolmogorov_constant/this->ou_energy_amplitude);
} }
......
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