MetropolisHasting Class |
Namespace: Accord.Statistics.Distributions.Sampling
The MetropolisHasting type exposes the following members.
Name | Description | |
---|---|---|
MetropolisHasting(Int32, FuncDouble, Double) |
Initializes a new instance of the MetropolisHasting algorithm.
| |
MetropolisHasting(Int32, FuncDouble, Double, IndependentNormalDistribution) |
Initializes a new instance of the MetropolisHasting algorithm.
|
Name | Description | |
---|---|---|
AcceptanceRate |
Gets the acceptance rate for the proposals generated
by the proposal distribution.
(Inherited from MetropolisHastingT.) | |
Current |
Gets the last successfully generated observation.
(Inherited from MetropolisHastingT.) | |
CurrentValue |
Gets the log-probability of the last successfully
generated sample.
(Inherited from MetropolisHastingT.) | |
Discard |
Gets or sets how many initial samples will get discarded as part
of the initial thermalization (warm-up, initialization) process.
(Inherited from MetropolisHastingT.) | |
LogProbabilityDensityFunction |
Gets the log-probability density function of the target distribution.
(Inherited from MetropolisHastingT.) | |
NumberOfInputs |
Gets the number of dimensions in each observation.
(Inherited from MetropolisHastingT.) | |
Proposal |
Gets or sets the move proposal distribution.
(Inherited from MetropolisHastingTObservation, TProposalDistribution.) | |
RandomSource |
Gets or sets a factory method to create random number generators used in this instance.
(Inherited from MetropolisHastingT.) |
Name | Description | |
---|---|---|
Continuous(Int32, FuncDouble, Double) |
Creates a new MetropolisHasting sampler using independent Normal distributions
as the parameter proposal generation priors.
| |
ContinuousT(Int32, T) |
Creates a new MetropolisHasting sampler using independent Normal distributions
as the parameter proposal generation priors.
| |
Discrete(Int32, FuncInt32, Double) |
Creates a new MetropolisHasting sampler using symmetric geometric distributions
as the parameter proposal generation priors.
| |
DiscreteT(Int32, T) |
Creates a new MetropolisHasting sampler using symmetric geometric distributions
as the parameter proposal generation priors.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Generate |
Generates a random observation from the current distribution.
(Inherited from MetropolisHastingT.) | |
Generate(Int32) |
Generates a random vector of observations from the current distribution.
(Inherited from MetropolisHastingT.) | |
Generate(Int32, T) |
Generates a random vector of observations from the current distribution.
(Inherited from MetropolisHastingT.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize(Int32, FuncT, Double, FuncT, T, T) |
Initializes the algorithm.
(Inherited from MetropolisHastingT.) | |
Initialize(Int32, FuncTObservation, Double, TProposalDistribution) |
Initializes the algorithm.
(Inherited from MetropolisHastingTObservation, TProposalDistribution.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGenerate |
Attempts to generate a new observation from the target
distribution, storing its value in the Current
property.
(Inherited from MetropolisHastingT.) | |
TryGenerate(T) |
Attempts to generate a new observation from the target
distribution, storing its value in the Current
property.
(Inherited from MetropolisHastingT.) | |
WarmUp |
Thermalizes the sample generation process, generating up to
Discard samples and discarding them. This step
is done automatically upon the first call to any of the
Generate functions.
(Inherited from MetropolisHastingT.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
References: