Curve Fitting.
Copyright 2007-2011 Research Foundation State University of New York
This file is part of QUB Express.
QUB Express is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
QUB Express is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License,
named LICENSE.txt, in the QUB Express program directory. If not, see
<http://www.gnu.org/licenses/>.
|
Correlation(curve,
param_vals,
xx,
yy,
vvv,
ww)
Returns (cross_correlation, is_pseudo, std_err_est, ssr, r2)
cross_correlation matrix[i][j] for curve param indices i,j
is_pseudo whether Hessian was non-positive-definite,
requiring Cholesky factorization std_err_est error
estimates for each curve param ssr sum-sqr
residual r2 R^2 |
source code
|
|
|
Covariance(curve,
param_vals,
xx,
yy,
vvv,
ww)
Returns the covariance matrix[i][j] (inverse Hessian), for curve
param indices i,j. |
source code
|
|
|
Hessian(curve,
param_vals,
xx,
yy,
vvv,
ww,
dev=1e-07)
Returns the numpy.array(shape=(i,j)) of d(dResidual)/dP_i,dP_j, for
i,j in len(non-const-params). |
source code
|
|
|
RunsProb(yy,
ff)
Counts the number of runs of y>f and y<f; returns probability
it's from random noise. |
source code
|
|
|
|
|
|
|
on_iter_pass(param_vals,
iter)
Default fitter iteration callback; does nothing. |
source code
|
|
|
on_status_print(msg)
Default fitter status callback; prints to stdout. |
source code
|
|
|
|
|
pseudovar(var)
Minimally after Gill-Murray: if covariance matrix is not positive
definite, some diagonals are negative, with unknown meaning. |
source code
|
|
|
sub_eval(xx,
vvv,
func,
pval_by_name,
avail) |
source code
|
|