odr.models

Collection of Model instances for use with the odrpack fitting package.

Module Contents

Functions

_lin_fcn(B,x)
_lin_fjb(B,x)
_lin_fjd(B,x)
_lin_est(data)
_poly_fcn(B,x,powers)
_poly_fjacb(B,x,powers)
_poly_fjacd(B,x,powers)
_exp_fcn(B,x)
_exp_fjd(B,x)
_exp_fjb(B,x)
_exp_est(data)
polynomial(order) Factory function for a general polynomial model.
_unilin(B,x)
_unilin_fjd(B,x)
_unilin_fjb(B,x)
_unilin_est(data)
_quadratic(B,x)
_quad_fjd(B,x)
_quad_fjb(B,x)
_quad_est(data)
_lin_fcn(B, x)
_lin_fjb(B, x)
_lin_fjd(B, x)
_lin_est(data)
_poly_fcn(B, x, powers)
_poly_fjacb(B, x, powers)
_poly_fjacd(B, x, powers)
_exp_fcn(B, x)
_exp_fjd(B, x)
_exp_fjb(B, x)
_exp_est(data)
polynomial(order)

Factory function for a general polynomial model.

order : int or sequence
If an integer, it becomes the order of the polynomial to fit. If a sequence of numbers, then these are the explicit powers in the polynomial. A constant term (power 0) is always included, so don’t include 0. Thus, polynomial(n) is equivalent to polynomial(range(1, n+1)).
polynomial : Model instance
Model instance.
_unilin(B, x)
_unilin_fjd(B, x)
_unilin_fjb(B, x)
_unilin_est(data)
_quadratic(B, x)
_quad_fjd(B, x)
_quad_fjb(B, x)
_quad_est(data)