public class CDistMappedCoupler<T extends org.apache.commons.math3.distribution.RealDistribution> extends Object implements LongToDoubleFunction
This class does nothing to handle randomness or the need to choose over the possible interval pseudo-randomly. It simply provides the transform between the "U" unit-interval value that you would get from that phase and the resulting value on the cumulative density curve.
Furthermore, the input value is not in actual "U" unit-interval form. It is instead a value from the set of positive long values.
| Constructor and Description |
|---|
CDistMappedCoupler(org.apache.commons.math3.distribution.RealDistribution distribution,
RandomBypassAdapter bypass) |
| Modifier and Type | Method and Description |
|---|---|
double |
applyAsDouble(long value) |
org.apache.commons.math3.distribution.RealDistribution |
getDistribution() |
public CDistMappedCoupler(org.apache.commons.math3.distribution.RealDistribution distribution,
RandomBypassAdapter bypass)
public org.apache.commons.math3.distribution.RealDistribution getDistribution()
public double applyAsDouble(long value)
applyAsDouble in interface LongToDoubleFunctionCopyright © 2017. All rights reserved.