Go to the documentation of this file.
28 #ifndef SCIMATH_LSQAIPS_H
29 #define SCIMATH_LSQAIPS_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/Array.h>
34 #include <casacore/casa/Arrays/Vector.h>
35 #include <casacore/casa/Arrays/VectorSTLIterator.h>
36 #include <casacore/scimath/Fitting/LSQFit.h>
203 #ifndef CASACORE_NO_AUTO_TEMPLATES
204 #include <casacore/scimath/Fitting/LSQaips.tcc>
205 #endif //# CASACORE_NO_AUTO_TEMPLATES
Bool solveLoop(Double &fit, uInt &nRank, std::complex< U > *sol, Bool doSVD=False)
uInt nUnknowns() const
Get the number of unknowns.
Type of complex numeric class indicator
LSQaips & operator=(const LSQaips &other)
Assignment (deep copy)
Bool solveLoop(uInt &nRank, Vector< U > &sol, Bool doSVD=False)
Basic class for the least squares fitting.
Bool solveLoop(uInt &nRank, std::complex< U > *sol, Bool doSVD=False)
Bool solveLoop(Double &fit, uInt &nRank, Vector< U > &sol, Bool doSVD=False)
static const String errors
LSQaips(uInt nUnknowns, const LSQComplex &, uInt nConstraints=0)
LSQaips(uInt nUnknowns, const LSQReal &, uInt nConstraints=0)
Allow explicit complex/real specification.
Bool getErrors(std::complex< U > *errors)
void solve(U *sol)
Solve normal equations.
Bool getCovariance(Array< U > &covar)
String & resize(size_type n)
Resize by truncating or extending with copies of c (default Char())
void solve(std::complex< U > *sol)
Traits for numeric classes used
Bool getErrors(U *errors)
Get main diagonal of covariance function (of size nUnknowns)
LSQaips(const LSQaips &other)
Copy constructor (deep copy)
LSQaips()
Default constructor (empty, real, only usable after a set(nUnknowns))
Bool solveLoop(Double &fit, uInt &nRank, U *sol, Bool doSVD=False)
LSQFit & operator=(const LSQFit &other)
Assignment (deep copy)
Bool getErrors(Vector< U > &errors)
Bool getCovariance(U *covar)
Get the covariance matrix (of size nUnknowns * nUnknowns)
uInt nConstraints() const
Get the number of constraints.
Bool getCovariance(U *covar)
Get the covariance matrix.
Bool getErrors(U *errors)
Get main diagonal of covariance function (of size nUnknowns)
this file contains all the compiler specific defines
Bool solveLoop(uInt &nRank, U *sol, Bool doSVD=False)
Solve a Levenberg-Marquardt loop.
void solve(U *sol)
Solve normal equations.
void solve(Vector< U > &sol)
Interface for Casacore Vectors in least squares fitting.
template <class T, class U> class vector;
Bool getErrors(U &errors)
Bool solveLoop(Double &fit, uInt &nRank, U &sol, Bool doSVD=False)
Bool solveLoop(uInt &nRank, U *sol, Bool doSVD=False)
Solve a loop in a non-linear set.
bool Bool
Define the standard types used by Casacore.
const Char * data() const
As pointer to char array
A 1-D Specialization of the Array class.
Bool getCovariance(std::complex< U > *covar)
Bool solveLoop(uInt &nRank, U &sol, Bool doSVD=False)
LSQaips(uInt nUnknowns, uInt nConstraints=0)
Construct an object with the number of unknown, knowns and constraints, and type, using the default c...
Typing support classes for LSQ classes.