Package jdistlib.inference
Class ModelSpecificRjKernel
java.lang.Object
jdistlib.inference.ModelSpecificRjKernel
- All Implemented Interfaces:
ReversibleJumpWithinModelKernel
Dispatches to a distinct within-model kernel for each declared model identifier.
-
Constructor Summary
ConstructorsConstructorDescriptionModelSpecificRjKernel(String name, Map<Long, ReversibleJumpWithinModelKernel> kernels) -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplicable(ReversibleJumpState state, ReversibleJumpTarget target) voidname()voidvoidrestoreAdaptation(Map<String, double[]> state) update(ReversibleJumpState state, double currentLogJoint, ReversibleJumpTarget target, RandomEngine random, boolean warmup)
-
Constructor Details
-
ModelSpecificRjKernel
-
-
Method Details
-
name
- Specified by:
namein interfaceReversibleJumpWithinModelKernel
-
applicable
- Specified by:
applicablein interfaceReversibleJumpWithinModelKernel
-
update
public ReversibleJumpWithinModelTransition update(ReversibleJumpState state, double currentLogJoint, ReversibleJumpTarget target, RandomEngine random, boolean warmup) - Specified by:
updatein interfaceReversibleJumpWithinModelKernel
-
adaptationState
- Specified by:
adaptationStatein interfaceReversibleJumpWithinModelKernel
-
restoreAdaptation
- Specified by:
restoreAdaptationin interfaceReversibleJumpWithinModelKernel
-
freezeAdaptation
public void freezeAdaptation()- Specified by:
freezeAdaptationin interfaceReversibleJumpWithinModelKernel
-
resetAdaptation
public void resetAdaptation()- Specified by:
resetAdaptationin interfaceReversibleJumpWithinModelKernel
-