Stimfit  0.13.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Namespaces | Functions
fit.h File Reference

Functions for linear and non-linear regression. More...

#include "./stfmath.h"
#include <deque>
Include dependency graph for fit.h:

Go to the source code of this file.

Namespaces

namespace  stf
 

The stimfit namespace.


Functions

template<typename 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.

Detailed Description

Functions for linear and non-linear regression.

Author:
Christoph Schmidt-Hieber
Date:
2008-01-16

Definition in file fit.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines