Package jdistlib.inference
Class RandomWalkKernel
java.lang.Object
jdistlib.inference.RandomWalkKernel
- All Implemented Interfaces:
TransitionKernel<RandomWalkKernel.State>
public final class RandomWalkKernel
extends Object
implements TransitionKernel<RandomWalkKernel.State>
Reusable Gaussian random-walk Metropolis transition kernel.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninitialize(LogDensity target, double[] initialState, SamplingOptions options, RandomEngine random) step(LogDensity target, RandomWalkKernel.State state, SamplingOptions options, RandomEngine random)
-
Constructor Details
-
RandomWalkKernel
public RandomWalkKernel()
-
-
Method Details
-
initialize
public RandomWalkKernel.State initialize(LogDensity target, double[] initialState, SamplingOptions options, RandomEngine random) - Specified by:
initializein interfaceTransitionKernel<RandomWalkKernel.State>
-
step
public KernelTransition<RandomWalkKernel.State> step(LogDensity target, RandomWalkKernel.State state, SamplingOptions options, RandomEngine random) - Specified by:
stepin interfaceTransitionKernel<RandomWalkKernel.State>
-