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

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

execute( kw, lowLhood, iteration=0 ) [source]
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, location=None ) [source]
One execution call.
Methods inherited from Engine