Class MCMCParams2
java.lang.Object
Localiser.algorithms.genericLocaliser.MCMC.MCMCParams2
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
- Direct Known Subclasses:
MimplexParams
Paramters for running a Marklov chain Monte Carlo algorithm.
- Author:
- Jamie Macaulay
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionint
Parameters for analysis of chainsdouble[][]
Where in parameter space the chains should start.int
The type of cluster analysis to use to merge the different chains if they converge on the same or ambiguous results.boolean
Use cylindrical jumps.static final int
static final int
double[]
The size of Gaussian distribution for the jump in each dimension;static final int
Use K_MEANS to cluster the different chainsint
The number of times to perform a k-means algorithm on results The algorithm starts clusters at random locations.int
The number of iterations for each k-means attempt.double
static final int
static final int
Do not attempt to cluster the chains.int
The number of seperate chains to use in the simulationint
The number of jumps in each Markov chain to attempt.double
static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Timing error to add to time delays.Get a set of data that describes all of the parameters in a classdouble[][]
setChainDispersion
(double dispersion, int nDim) Set chain start dispersion to one value for all dimensions.void
setJumpSize
(double jumpsize, int nDim) Set the chain jump size- sets the jump size of all dimensions to the input jump size.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
jumpSize
public double[] jumpSizeThe size of Gaussian distribution for the jump in each dimension; -
numberOfJumps
public int numberOfJumpsThe number of jumps in each Markov chain to attempt. (not the total successful jumps that should be reached before the chain ends) -
chainStartDispersion
public double[][] chainStartDispersionWhere in parameter space the chains should start. Each value in the array is for one dimension. When chains start a random number between the two numbers is chosen as the start position in that dimension for the chain. -
numberOfChains
public int numberOfChainsThe number of seperate chains to use in the simulation -
cylindricalCoOrdinates
public boolean cylindricalCoOrdinatesUse cylindrical jumps. -
chainAnalysis
public int chainAnalysisParameters for analysis of chains -
GELMAM_RUBIN_DIAGNOSIS
public static final int GELMAM_RUBIN_DIAGNOSIS- See Also:
-
IGNORE_PERCENTAGE
public static final int IGNORE_PERCENTAGE- See Also:
-
MEDIAN
public static final int MEDIAN- See Also:
-
percentageToIgnore
public double percentageToIgnore -
clusterAnalysis
public int clusterAnalysisThe type of cluster analysis to use to merge the different chains if they converge on the same or ambiguous results. See K_MEANS and NONE constants. -
NONE
public static final int NONEDo not attempt to cluster the chains.- See Also:
-
K_MEANS
public static final int K_MEANSUse K_MEANS to cluster the different chains- See Also:
-
nKMeans
-
maxClusterSize
public double maxClusterSize -
kmeanAttempts
public int kmeanAttemptsThe number of times to perform a k-means algorithm on results The algorithm starts clusters at random locations. -
kmeansIterations
public int kmeansIterationsThe number of iterations for each k-means attempt. K-means converges to a result but requires a certain number of iteration to do so.
-
-
Constructor Details
-
MCMCParams2
public MCMCParams2()Constructor for MCMC params.
-
-
Method Details
-
setJumpSize
public void setJumpSize(double jumpsize, int nDim) Set the chain jump size- sets the jump size of all dimensions to the input jump size.- Parameters:
jumpsize
- the jump size for all dimensions.nDim
- the number of dimensions.
-
setChainDispersion
public double[][] setChainDispersion(double dispersion, int nDim) Set chain start dispersion to one value for all dimensions. The start dispersion is a random number centered on zero and from a distribution with a size defined by the dispersion input parameter.- Parameters:
dispersion
- the chain start dispersion for all dimensions.
-
clone
Timing error to add to time delays. This is here for legacy reasons. -
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-