FastRng/FastRng/Double/Distributions/InverseExponentialLa5.cs

14 lines
390 B
C#

using System;
using System.Threading;
using System.Threading.Tasks;
namespace FastRng.Double.Distributions
{
public sealed class InverseExponentialLa5 : Distribution
{
private const double LAMBDA = 5.0;
private const double CONSTANT = 0.001347589399817;
protected override double ShapeFunction(double x) => CONSTANT * LAMBDA * Math.Exp(LAMBDA * x);
}
}