Package models :: Module abstract_model :: Class AbstractFunction

Class AbstractFunction

source code


Base class for mystic functions

The 'function' method must be overwritten, thus allowing calls to the class instance to mimic calls to the function object.

For example, if function is overwritten with the Rosenbrock function:

>>> rosen = Rosenbrock()
>>> rosen(1,1,1)
0.
Instance Methods
 
__init__(self)
Provides a base class for mystic functions.
source code
 
__call__(self, *args, **kwds) source code
 
function(self, coeffs)
takes a list of coefficients x, returns f(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

Provides a base class for mystic functions.

Takes no inputs.

Overrides: object.__init__