BayesicFitting

Model Fitting and Evidence Calculation

View project on GitHub



class Modifiable( object )Source

Class adjoint to Model which implements the modifiable behaviour of some Models.

In the inhertance list is should be before Model as it changes the behaviour of Model.

Modifiable( modifiable=True )

Constructor for Modifiable

Parameters

  • modifiable : bool
         True if the Model is to be considered modifiable.

isModifiable( )

vary( location=None, rng=None, **kwargs )
Vary the structure of a Modifiable Model Default implementation: does nothing.

Parameters

  • location : int
         index of the item to be modified; otherwise random
  • rng : RNG
         random number generator
  • kwargs : keyword arguments
         for specific implementations