|
template<typename t > |
t | convert (const char *c) |
|
template<> |
double | convert< double > (const char *c) |
|
template<> |
float | convert< float > (const char *c) |
|
template<typename FLOAT > |
FLOAT | fit (const FLOAT &x, const vector< FLOAT > &p) |
|
template<typename FLOAT > |
void | fit (const FLOAT &x, const vector< FLOAT > &p, FLOAT &f, FLOAT &g, FLOAT &h) |
|
template<typename FLOAT > |
void | jacobi (int n, matrix< FLOAT > &a, vector< FLOAT > &e, matrix< FLOAT > &v) |
|
template<typename FLOAT > |
void | LSQ (int n, const matrix< FLOAT > &a, const vector< FLOAT > &b, vector< FLOAT > &x, const FLOAT &tol) |
|
int | main () |
|
template<typename FLOAT > |
void | makedata (const vector< FLOAT > &x, const vector< FLOAT > &f, const vector< FLOAT > &p, FLOAT &d0, vector< FLOAT > &d1, matrix< FLOAT > &d2, bool d0only=false) |
|
template<typename t > |
std::ostream & | operator<< (std::ostream &s, const matrix< t > &c) |
|
template<typename t > |
std::ostream & | operator<< (std::ostream &s, const std::vector< t > &c) |
| easy printing of vectors
|
|
template<typename FLOAT > |
vector< FLOAT > | opt (const vector< FLOAT > &x, const vector< FLOAT > &f, const vector< FLOAT > &w, const vector< FLOAT > &guess, int maxiter) |
|
template<typename FLOAT > |
void | plot (int npt, const FLOAT &a, const FLOAT &b, const vector< FLOAT > &p) |
|
template<typename FLOAT > |
FLOAT | target (const FLOAT &x) |
|
template<typename FLOAT > |
void | target (const FLOAT &x, FLOAT &f, FLOAT &d1f, FLOAT &d2f) |
|
template<typename FLOAT > |
void | test () |
|
template<typename FLOAT > |
vector< FLOAT > | updatex (const vector< FLOAT > &x, const vector< FLOAT > &p) |
|
template<typename FLOAT > |
FLOAT | weight (const FLOAT &x) |
|
template<typename FLOAT > |
void | weight (const FLOAT &x, FLOAT &f, FLOAT &d1f, FLOAT &d2f) |
|
template<typename FLOAT >
void makedata |
( |
const vector< FLOAT > & |
x, |
|
|
const vector< FLOAT > & |
f, |
|
|
const vector< FLOAT > & |
p, |
|
|
FLOAT & |
d0, |
|
|
vector< FLOAT > & |
d1, |
|
|
matrix< FLOAT > & |
d2, |
|
|
bool |
d0only = false |
|
) |
| |
template<typename FLOAT >
vector< FLOAT > opt |
( |
const vector< FLOAT > & |
x, |
|
|
const vector< FLOAT > & |
f, |
|
|
const vector< FLOAT > & |
w, |
|
|
const vector< FLOAT > & |
guess, |
|
|
int |
maxiter |
|
) |
| |
References e(), f, fit(), func(), guess(), std::isnan(), jacobi(), k, makedata(), maxiter, p(), print(), sum, v, and w().
Referenced by main(), main(), and test().