Package PyDSTool :: Package Toolbox :: Package optimizers :: Package helpers :: Module finite_difference :: Class ForwardFiniteDifferences
[hide private]
[frames] | no frames]

Class ForwardFiniteDifferences

source code

               object --+    
                        |    
FiniteDifferencesFunction --+
                            |
                           ForwardFiniteDifferences

A function that will be able to computes its derivatives with a forward difference formula

Instance Methods [hide private]
 
__call__(self, params) source code
 
__init__(self, eps=1e-07, *args, **kwargs)
Creates the function :...
source code
 
gradient(self, params)
Computes the gradient of the function
source code
 
hessian(self, params)
Computes the hessian of the function
source code
 
hessianvect(self, params)
Computes the hessian times a vector
source code

Inherited from FiniteDifferencesFunction: residual

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, eps=1e-07, *args, **kwargs)
(Constructor)

source code 

Creates the function :
- eps is the amount of difference that will be used in the computations

Overrides: object.__init__