org.omegahat.Simulation.MCMC.Targets
Class CachingTarget
java.lang.Object
|
+--org.omegahat.Simulation.MCMC.Targets.CachingTarget
- All Implemented Interfaces:
- UnnormalizedDensity
- public class CachingTarget
- extends java.lang.Object
- implements UnnormalizedDensity
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
target
UnnormalizedDensity target
objectCache
java.lang.Object[] objectCache
probCache
double[] probCache
cachedIsLogProb
boolean[] cachedIsLogProb
index
int index
CachingTarget
public CachingTarget(UnnormalizedDensity target,
int length)
CachingTarget
public CachingTarget(UnnormalizedDensity target)
target
public UnnormalizedDensity target()
objectCache
public java.lang.Object[] objectCache()
probCache
public double[] probCache()
cachedIsLogProb
public boolean[] cachedIsLogProb()
unnormalizedPDF
public double unnormalizedPDF(java.lang.Object state)
- Specified by:
unnormalizedPDF
in interface UnnormalizedDensity
logUnnormalizedPDF
public double logUnnormalizedPDF(java.lang.Object state)
- Specified by:
logUnnormalizedPDF
in interface UnnormalizedDensity
common
protected double common(java.lang.Object state,
boolean wantLog)