BayesicFitting

Model Fitting and Evidence Calculation

View project on GitHub



class DeathEngine( Engine )Source

The DeathEngine deletes a component from the model.

Only for Models that are Dynamic. The death rate is governed by the growth-prior in the dynamic model.

The member is kept when the logLikelihood > lowLhood.

Attributes from Engine

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

Author Do Kester.

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

Constructor.

Parameters

  • walkers : WalkerList
         walkers to be diffused
  • errdis : ErrorDistribution
         error distribution to be used
  • copy : GalileanEngine
         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 removins a component.

Parameters

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

Returns

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