BayesicFitting

Model Fitting and Evidence Calculation

View project on GitHub



class BirthEngine( Engine )Source

The BirthEngine adds a new component to the model.

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

The member is kept when the logLikelihood > lowLhood.

Attributes from Engine

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

Author Do Kester.

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

Constructor.

Parameters

  • walkers : list of Walker
         walkers to be diffused
  • errdis : ErrorDistribution
         error distribution to be used
  • copy : BirthEngine
         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 adding a component and diffusing the parameters.

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