A table used for printing information.
std::vector< double > Vector_double
StfnumDll double falpha(double x, const Vector_double &p)
Alpha function.
StfnumDll double fexpbde(double x, const Vector_double &p)
Biexponential function with delay.
void 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 yunscale(double param, double xscale, double xoff, double yscale, double yoff)
Unscales a parameter that linearly depends on y.
void 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 fexp(double x, const Vector_double &p)
Sum of n exponential functions.
Vector_double fgnabiexp_jac(double x, const Vector_double &p)
Computes the Jacobian of stfnum::fgnabiexp().
void 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.
void 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.
StfnumDll double fexpde(double x, const Vector_double &p)
Monoexponential function with delay.
double fexptde(double x, const Vector_double &p)
Triexponential function with delay.
StfnumDll double fgauss(double x, const Vector_double &p)
Computes the sum of an arbitrary number of Gaussians.
void 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.
void 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.
Vector_double fgauss_jac(double x, const Vector_double &p)
Computes the Jacobian of a sum of Gaussians.
StfnumDll double fHH(double x, const Vector_double &p)
Hodgkin-Huxley sodium conductance function.
StfnumDll std::vector< stfnum::storedFunc > GetFuncLib()
Returns the library of functions for non-linear regression.
double xunscale(double param, double xscale, double xoff, double yscale, double yoff)
Unscales a parameter that linearly depends on x.
std::vector< stfnum::parInfo > getParInfoExp(int n_exp)
Creates stfnum::parInfo structs for n-exponential functions.
double yscaleoffset(double param, double xscale, double xoff, double yscale, double yoff)
Scales a parameter that linearly depends on y and adds an offset.
void 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 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.
double yunscaleoffset(double param, double xscale, double xoff, double yscale, double yoff)
Unscales a parameter that linearly depends on y and removes the offset.
StfnumDll double base(enum stfnum::baseline_method method, double &var, const std::vector< double > &data, std::size_t llb, std::size_t ulb)
Calculate the average of all sampling points between and including llb and ulb.
Vector_double falpha_jac(double x, const Vector_double &p)
Computes the Jacobian of stfnum::falpha().
std::size_t whereis(const Vector_double &data, double value)
Finds the index of data where value is encountered for the first time.
double xscale(double param, double xscale, double xoff, double yscale, double yoff)
Scales a parameter that linearly depends on x.
StfnumDll double peak(const std::vector< double > &data, double base, std::size_t llp, std::size_t ulp, int pM, stfnum::direction, double &maxT)
Find the peak value of data between llp and ulp.
Vector_double fexp_jac(double x, const Vector_double &p)
Computes the Jacobian of stfnum::fexp().
void 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.
StfnumDll double fgnabiexp(double x, const Vector_double &p)
power of 1 sodium conductance function.
stfnum::Table outputWTau(const Vector_double &p, const std::vector< stfnum::parInfo > &parsInfo, double chisqr)
Calculates a weighted time constant.
double yscale(double param, double xscale, double xoff, double yscale, double yoff)
Scales a parameter that linearly depends on y.
#define StfnumDll
Defines dll export or import functions for libstfnum on Windows.