Click or drag to resize

UnivariateSliceSampler Class

Slice sampling produces samples from distribution P by uniformly sampling from under the pdf of P using a technique described in "Slice Sampling", R. Neal, 2003. All densities are required to be in log space. The slice sampler is a stateful sampler. It keeps track of where it currently is in the domain of the distribution P.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.Statistics.McmcMcmcSamplerDouble
    Altaxo.Calc.Statistics.McmcUnivariateSliceSampler

Namespace: Altaxo.Calc.Statistics.Mcmc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class UnivariateSliceSampler : McmcSampler<double>

The UnivariateSliceSampler type exposes the following members.

Constructors
 NameDescription
Public methodUnivariateSliceSampler(Double, DensityLnDouble, Double) Constructs a new Slice sampler using the default Random random number generator. The burn interval will be set to 0.
Public methodUnivariateSliceSampler(Double, DensityLnDouble, Int32, Double) Constructs a new slice sampler using the default Random random number generator. It will set the number of burnInterval iterations and run a burnInterval phase.
Top
Properties
 NameDescription
Public propertyAcceptanceRate Gets the acceptance rate of the sampler.
(Inherited from McmcSamplerT)
Public propertyBurnInterval Gets or sets the number of iterations in between returning samples.
Public propertyRandomSource Gets or sets the random number generator.
(Inherited from McmcSamplerT)
Public propertyScale Gets or sets the scale of the slice sampler.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSample Returns a sample from the distribution P.
(Overrides McmcSamplerTSample)
Public methodSample(Int32) Returns a number of samples.
(Inherited from McmcSamplerT)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected fieldAccepts Keeps track of the number of accepted samples.
(Inherited from McmcSamplerT)
Protected fieldSamples Keeps track of the number of calls to the proposal sampler.
(Inherited from McmcSamplerT)
Top
See Also