Package blang.core
Class DistributionAdaptor<T>
java.lang.Object
blang.core.DistributionAdaptor<T>
- All Implemented Interfaces:
Distribution<T>
public class DistributionAdaptor<T> extends java.lang.Object implements Distribution<T>
-
Constructor Summary
Constructors Constructor Description DistributionAdaptor(UnivariateModel<T> model)
-
Method Summary
Modifier and Type Method Description double
logDensity()
T
realization()
void
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
-
DistributionAdaptor
-
-
Method Details
-
sample
public void sample(java.util.Random random)- Specified by:
sample
in interfaceDistribution<T>
-
logDensity
public double logDensity()- Specified by:
logDensity
in interfaceDistribution<T>
-
realization
- Specified by:
realization
in interfaceDistribution<T>
-