BayesicFitting

Model Fitting and Evidence Calculation

View project on GitHub



class ShuffleEngine( OrderEngine )Source

The ShuffleEngine tries to shuffle a selection of the parameters in place.

Input order : [0,1,2,3,4,5,6,7,8,9]

output order: [0,1,2,5,3,7.4,6,8,9]

It belongs to the class of generalized travelling salesman problems where the parameters of the problem is an ordered list.

The walker is kept when the logLikelihood > lowLhood

Attributes from Engine

walkers, errdis, maxtrials, nstep, slow, rng, report, phantoms, verbose

Author Do Kester.

ShuffleEngine( walkers, errdis, copy=None, **kwargs )

Constructor.

Parameters

  • walkers : SampleList
         walkers to be diffused
  • errdis : ErrorDistribution
         error distribution to be used
  • copy : ShuffleEngine
         to be copied
  • kwargs : dict for Engine
         "phantoms", "slow", "seed", "verbose"

copy( )

Return copy of this.

execute( kw, lowLhood )
Execute the engine by diffusing the parameters.

Parameters

  • kw : int
         id of walker to diffuse
  • lowLhood : float
         lower limit in logLikelihood

Returns

  • int : the number of successfull moves
Methods inherited from OrderEngine
Methods inherited from Engine