public class IDistMappedCoupler<T extends org.apache.commons.math3.distribution.IntegerDistribution> extends Object implements LongUnaryOperator
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.
Specifically, 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 |
|---|
IDistMappedCoupler(org.apache.commons.math3.distribution.IntegerDistribution integerDistribution,
RandomBypassAdapter bypass) |
| Modifier and Type | Method and Description |
|---|---|
long |
applyAsLong(long operand) |
org.apache.commons.math3.distribution.IntegerDistribution |
getDistribution() |
RandomBypassAdapter |
getRandomBypassAdapter() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, compose, identitypublic IDistMappedCoupler(org.apache.commons.math3.distribution.IntegerDistribution integerDistribution,
RandomBypassAdapter bypass)
public RandomBypassAdapter getRandomBypassAdapter()
public org.apache.commons.math3.distribution.IntegerDistribution getDistribution()
public long applyAsLong(long operand)
applyAsLong in interface LongUnaryOperatorCopyright © 2017. All rights reserved.