BayesicFitting

Model Fitting and Evidence Calculation

View project on GitHub



class StructureEngine( Engine )Source

The StructureEngine varies the internal structure of the model.

Only for Models that are Modifiable.

The member is kept when the logLikelihood > lowLhood.

Attributes

None of its own

Attributes from Engine

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

Author Do Kester.

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

Constructor.

Parameters

  • walkers : list of Walker
         walkers to be diffused
  • errdis : ErrorDistribution
         error distribution to be used
  • copy : StructureEngine
         to be copied
  • kwargs : for Engine
         "phantoms", "slow", "seed", "verbose"

copy( )

Return copy of this.

execute( kw, lowLhood, append=False, iteration=0 )
Execute the engine by changing a component.

Parameters

  • kw : int
         index of walker to diffuse
  • lowLhood : float
         lower limit in logLikelihood
  • append : bool
         set walker in place or append in walkerlist
  • iteration : int
         iteration number

Returns

  • int : the number of successfull moves

executeOnce( wlkrid, lowLhood, update, location=None )
One execution call.
Methods inherited from Engine