Stimfit
0.13.15
|
Functions for linear and non-linear regression. More...
Go to the source code of this file.
Namespaces | |
namespace | stf |
The stimfit namespace. | |
Functions | |
template<typename T > | |
T | stf::linFit (const std::vector< T > &x, const std::vector< T > &y, T &m, T &c) |
Performs a linear fit. | |
double StfDll | stf::lmFit (const Vector_double &data, double dt, const stf::storedFunc &fitFunc, const Vector_double &opts, bool use_scaling, Vector_double &p, std::string &info, int &warning) |
Uses the Levenberg-Marquardt algorithm to perform a non-linear least-squares fit. | |
double | stf::flin (double x, const Vector_double &p) |
Linear function. | |
void | stf::flin_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit) |
Dummy function to be passed to stf::storedFunc for linear functions. | |
stf::storedFunc | stf::initLinFunc () |
initializes a linear function | |
Vector_double | stf::get_scale (Vector_double &data, double oldx) |
Compute and perform normalisation. | |
Vector_double | stf::LM_default_opts () |
Return default LM options. |