public double GenerateRandom() { return(LaplaceFunction.FromValue(rand.NextDouble() - 0.5) * Math.Sqrt(Variance) + Mean); }
private double GetCDF(double x) { return(0.5 + LaplaceFunction.From((x - Mean) / Math.Sqrt(Variance))); }