Skip to content

Latest commit

 

History

History
94 lines (68 loc) · 4.42 KB

File metadata and controls

94 lines (68 loc) · 4.42 KB




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 ) [source]

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( ) [source]

execute( kw, lowLhood ) [source]
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