mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-16 01:28:05 +00:00
cleaned-up GBM, removed Python tests
This commit is contained in:
@@ -51,7 +51,7 @@ public class GBM_Feed : TBars
|
||||
}
|
||||
|
||||
private static double GBM_value (double Seed, double Volatility, double Drift) {
|
||||
Random rnd = new((int)(DateTime.UtcNow.Ticks));
|
||||
Random rnd = new();
|
||||
double U1 = 1.0-rnd.NextDouble();
|
||||
double U2 = 1.0-rnd.NextDouble();
|
||||
double Z = Math.Sqrt(-2.0 * Math.Log(U1)) * Math.Sin(2.0 * Math.PI * U2);
|
||||
|
||||
Reference in New Issue
Block a user