Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
funclib.h File Reference

User-defined functions for the Levenberg-Marquardt non-linear regression. More...

#include "./stfnum.h"
Include dependency graph for funclib.h:

Go to the source code of this file.

Namespaces

namespace  stfnum

Functions

StfnumDll double stfnum::fexp (double x, const Vector_double &p)
 Sum of n exponential functions.
Vector_double stfnum::fexp_jac (double x, const Vector_double &p)
 Computes the Jacobian of stfnum::fexp().
void stfnum::fexp_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit)
 Initialises parameters for fitting stfnum::fexp() to data.
void stfnum::fexp_init2 (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit)
 Yet another initialiser for fitting stfnum::fexp() to data.
StfnumDll double stfnum::fexpde (double x, const Vector_double &p)
 Monoexponential function with delay.
void stfnum::fexpde_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit)
 Initialises parameters for fitting stfnum::fexpde() to data.
StfnumDll double stfnum::fexpbde (double x, const Vector_double &p)
 Biexponential function with delay.
double stfnum::fexptde (double x, const Vector_double &p)
 Triexponential function with delay.
void stfnum::fexpbde_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit)
 Initialises parameters for fitting stfnum::fexpde() to data.
void stfnum::fexptde_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit)
 Initialises parameters for fitting stfnum::fexpde() to data.
StfnumDll double stfnum::falpha (double x, const Vector_double &p)
 Alpha function.
Vector_double stfnum::falpha_jac (double x, const Vector_double &p)
 Computes the Jacobian of stfnum::falpha().
StfnumDll double stfnum::fHH (double x, const Vector_double &p)
 Hodgkin-Huxley sodium conductance function.
StfnumDll double stfnum::fgauss (double x, const Vector_double &p)
 Computes the sum of an arbitrary number of Gaussians.
Vector_double stfnum::fgauss_jac (double x, const Vector_double &p)
 Computes the Jacobian of a sum of Gaussians.
StfnumDll double stfnum::fgnabiexp (double x, const Vector_double &p)
 power of 1 sodium conductance function.
Vector_double stfnum::fgnabiexp_jac (double x, const Vector_double &p)
 Computes the Jacobian of stfnum::fgnabiexp().
void stfnum::falpha_init (const Vector_double &data, double base, double peak, double RTLoHI, double HalfWidth, double dt, Vector_double &pInit)
 Initialises parameters for fitting stfnum::falpha() to data.
void stfnum::fgauss_init (const Vector_double &data, double base, double peak, double RTLoHI, double HalfWidth, double dt, Vector_double &pInit)
 Initialises parameters for fitting stfnum::fgauss() to data.
void stfnum::fHH_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit)
 Initialises parameters for fitting stfnum::falpha() to data.
void stfnum::fgnabiexp_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit)
 Initialises parameters for fitting stfnum::falpha() to data.
double stfnum::xscale (double param, double xscale, double xoff, double yscale, double yoff)
 Scales a parameter that linearly depends on x.
double stfnum::xunscale (double param, double xscale, double xoff, double yscale, double yoff)
 Unscales a parameter that linearly depends on x.
double stfnum::yscale (double param, double xscale, double xoff, double yscale, double yoff)
 Scales a parameter that linearly depends on y.
double stfnum::yscaleoffset (double param, double xscale, double xoff, double yscale, double yoff)
 Scales a parameter that linearly depends on y and adds an offset.
double stfnum::yunscale (double param, double xscale, double xoff, double yscale, double yoff)
 Unscales a parameter that linearly depends on y.
double stfnum::yunscaleoffset (double param, double xscale, double xoff, double yscale, double yoff)
 Unscales a parameter that linearly depends on y and removes the offset.
std::vector< stfnum::parInfostfnum::getParInfoExp (int n_exp)
 Creates stfnum::parInfo structs for n-exponential functions.
stfnum::Table stfnum::outputWTau (const Vector_double &p, const std::vector< stfnum::parInfo > &parsInfo, double chisqr)
 Calculates a weighted time constant.
std::size_t stfnum::whereis (const Vector_double &data, double value)
 Finds the index of data where value is encountered for the first time.
StfnumDll std::vector< stfnum::storedFuncstfnum::GetFuncLib ()
 Returns the library of functions for non-linear regression.

Detailed Description

User-defined functions for the Levenberg-Marquardt non-linear regression.

Author
Christoph Schmidt-Hieber
Date
2008-01-20

Definition in file funclib.h.