Package PyDSTool :: Module common :: Class fit_cubic
[hide private]
[frames] | no frames]

Class fit_cubic

source code

  object --+    
           |    
fit_function --+
               |
              fit_cubic

Fit a cubic function y=a*x^3+b*x^2+c*x+d to the (x,y) array data. If initial parameter values = (a,b,c,d) are not given, the values (1,1,1,0) will be used.

result.f is the fitted function (accepts x values).

Instance Methods [hide private]
 
fn(self, x, a, b, c, d) source code
 
fit(self, xs, ys, pars_ic=None, opts=None) source code

Inherited from fit_function: __init__

Inherited from fit_function (private): _do_fit

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

fn(self, x, a, b, c, d)

source code 
Overrides: fit_function.fn

fit(self, xs, ys, pars_ic=None, opts=None)

source code 
Overrides: fit_function.fit