Class FitCumNormal
source code
Fit a Cumulative Normal function (aka error function or erf)
of the form:
y = chance + (1-chance)*(special.erf(xx*xScale - xShift)/2.0+0.5)
and with inverse:
x = (erfinv((yy-chance)/(1-chance)*2.0-1)+xShift)/xScale
After fitting the function you can evaluate an array of x-values
with fit.eval(x), retrieve the inverse of the function with
fit.inverse(y) or retrieve the parameters from fit.params
(a list with [xShift, xScale])
|
|
eval(self,
xx=None,
params=None)
Returns fitted yy for any given xx value(s). |
source code
|
|
|
|
|
|
Inherited from _baseFunctionFit:
__init__
|
|
Returns fitted yy for any given xx value(s).
Uses the original xx values (from which fit was calculated)
if none given.
If params is specified this will override the current model params.
- Overrides:
_baseFunctionFit.eval
- (inherited documentation)
|
|
Returns fitted xx for any given yy value(s).
If params is specified this will override the current model params.
- Overrides:
_baseFunctionFit.inverse
- (inherited documentation)
|