2020-10-31 13:27:45 +00:00
|
|
|
using System;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace FastRng.Double.Distributions
|
|
|
|
{
|
2020-10-31 22:44:23 +00:00
|
|
|
public sealed class InverseExponentialLa10 : Distribution
|
2020-10-31 13:27:45 +00:00
|
|
|
{
|
|
|
|
private const double LAMBDA = 10.0;
|
|
|
|
private const double CONSTANT = 4.539992976248453e-06;
|
|
|
|
|
2020-11-07 14:12:56 +00:00
|
|
|
public InverseExponentialLa10(IRandom rng) : base(rng)
|
|
|
|
{
|
|
|
|
}
|
2020-11-08 15:23:05 +00:00
|
|
|
|
|
|
|
private protected override double ShapeFunction(double x) => CONSTANT * LAMBDA * Math.Exp(LAMBDA * x);
|
2020-10-31 13:27:45 +00:00
|
|
|
}
|
|
|
|
}
|