Package blang.core
Class IntDistributionAdaptor
java.lang.Object
blang.core.IntDistributionAdaptor
- All Implemented Interfaces:
IntDistribution
public class IntDistributionAdaptor extends java.lang.Object implements IntDistribution
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IntDistributionAdaptor.WritableIntVarImpl
-
Constructor Summary
Constructors Constructor Description IntDistributionAdaptor(Distribution<IntVar> enclosed)
-
Method Summary
Modifier and Type Method Description double
logDensity(int point)
int
sample(java.util.Random random)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
IntDistributionAdaptor
-
-
Method Details
-
sample
public int sample(java.util.Random random)- Specified by:
sample
in interfaceIntDistribution
-
logDensity
public double logDensity(int point)- Specified by:
logDensity
in interfaceIntDistribution
-