Navigation
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( ) |
---|
execute( kw, lowLhood, append=False, iteration=0 ) |
---|
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 |
---|
- bestBoost( problem, myFitter=None )
- setWalker( kw, problem, allpars, logL, walker=None, fitIndex=None )
- noBoost( walker )
- doBoost( walker )
- domain2Unit( problem, dval, kpar=None )
- unit2Domain( problem, uval, kpar=None )
- startJourney( unitStart )
- calcJourney( unitDistance )
- reportJourney( )
- makeIndex( np, val )
- reportCall( )
- reportSuccess( )
- reportReject( )
- reportFailed( )
- reportBest( )
- printReport( best=False )
- successRate( )
- getUnitMinmax( problem, lowLhood )
- getUnitRange( problem, lowLhood )