Package HAL.Tools.Internal
Class Binomial
- java.lang.Object
-
- HAL.Tools.Internal.Binomial
-
- All Implemented Interfaces:
java.io.Serializable
public class Binomial extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Binomial()
-
Method Summary
Modifier and Type Method Description int
BinomialProbSample(int n, double p, Rand rng)
int
ColtInt(int n, double p, Rand rn)
int
ColtInt(Rand rn)
long
ColtLong(long n, double p, Rand rn)
long
ColtLong(Rand rn)
int
rk_binomial_inversion(int n, double p, Rand rn)
long
rk_binomial_inversion(long n, double p, Rand rn)
int
SampleInt(int n, double p, Rand rn)
int
SampleIntFast(int n, double p, Rand rn)
long
SampleLong(long n, double p, Rand rn)
void
SetNandPInt(int n, double p)
void
SetNandPLong(long n, double p)
-
-
-
Method Detail
-
BinomialProbSample
public int BinomialProbSample(int n, double p, Rand rng)
-
rk_binomial_inversion
public long rk_binomial_inversion(long n, double p, Rand rn)
-
rk_binomial_inversion
public int rk_binomial_inversion(int n, double p, Rand rn)
-
ColtLong
public long ColtLong(long n, double p, Rand rn)
-
ColtInt
public int ColtInt(Rand rn)
-
ColtLong
public long ColtLong(Rand rn)
-
ColtInt
public int ColtInt(int n, double p, Rand rn)
-
SampleIntFast
public int SampleIntFast(int n, double p, Rand rn)
-
SampleInt
public int SampleInt(int n, double p, Rand rn)
-
SampleLong
public long SampleLong(long n, double p, Rand rn)
-
SetNandPInt
public void SetNandPInt(int n, double p)
-
SetNandPLong
public void SetNandPLong(long n, double p)
-
-