1 #ifndef ZeroBufferFit_h 2 #define ZeroBufferFit_h 85 inline int size()
const {
return (_data.dim()); }
98 int nSize()
const {
return (_b2.dim()); }
115 double absErr()
const {
return (_absErr); }
117 double relErr()
const {
return (_relErr); }
122 const NLVector &uncerts,
double cplxconj,
129 double Chisq()
const {
return (_chisq); }
156 virtual void printOn(std::ostream &o)
const;
158 int goodLines(
const HiVector &d)
const {
return (d.dim() - _badLines); }
160 bool gotGoodLines(
const HiVector &d)
const {
161 return (goodLines(d) >= _minLines);
void setLineTime(double ltime)
Set scan line time.
Definition: ZeroBufferFit.h:75
HiVector Yfit() const
Computes the solution vector using current coefficents.
Definition: ZeroBufferFit.cpp:281
Compute HiRISE line times.
Definition: HiCalUtil.h:375
void setBin(int bin)
Set binning/summing mode.
Definition: ZeroBufferFit.h:68
int nSize() const
Returns the size of the fitted buffer.
Definition: ZeroBufferFit.h:98
int DoF() const
Returns the Degrees of Freedom.
Definition: ZeroBufferFit.h:131
void setrelErr(double relError)
Sets the relative error parameter.
Definition: ZeroBufferFit.h:113
NonLinearLSQ Computes a fit using a Levenberg-Marquardt algorithm.
Definition: NonLinearLSQ.h:57
HiVector Normalize(const HiVector &v)
Compute normalized solution vector from result.
Definition: ZeroBufferFit.cpp:297
Computes non-linear lsq fit of HiRISE Drift (Zd module)
Definition: ZeroBufferFit.h:56
int nParms() const
Number of parameter to be fitted.
Definition: ZeroBufferFit.h:108
void setLineTime(double ltime)
Definition: HiCalUtil.h:381
int size() const
Returns the size of the data buffer.
Definition: ZeroBufferFit.h:85
int checkIteration(const int Iter, const NLVector &fitcoefs, const NLVector &uncerts, double cplxconj, int Istatus)
Computes the interation check for convergence.
Definition: ZeroBufferFit.cpp:234
double relErr() const
Returns the current value of the relative error.
Definition: ZeroBufferFit.h:117
TNT::Array1D< double > NLVector
Definition: NonLinearLSQ.h:59
ZeroBufferFit(const HiCalConf &conf)
Compute second level drift correction (Zf module)
Definition: ZeroBufferFit.cpp:53
Module manages HiRISE calibration vectors from various sources.
Definition: Module.h:54
double absErr() const
Returns the current value of the absolute error.
Definition: ZeroBufferFit.h:115
double Chisq() const
Returns the Chi-Square value of the fit solution.
Definition: ZeroBufferFit.h:129
TNT::Array2D< double > NLMatrix
Definition: NonLinearLSQ.h:60
NLMatrix df_x(const NLVector &a)
Computes the first derivative of the function at the current iteration.
Definition: ZeroBufferFit.cpp:260
void setabsErr(double absError)
Sets the absolute error parameter.
Definition: ZeroBufferFit.h:111
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void setBin(int bin)
Definition: HiCalUtil.h:382
NLVector f_x(const NLVector &a)
Computes the function value at the current iteration.
Definition: ZeroBufferFit.cpp:242
NLVector guess()
Compute the initial guess of the fit.
Definition: ZeroBufferFit.cpp:177
virtual ~ZeroBufferFit()
Destructor.
Definition: ZeroBufferFit.h:61
HiVector Solve(const HiVector &d)
Compute non-linear fit to (typically) ZeroBufferSmooth module.
Definition: ZeroBufferFit.cpp:106
TNT::Array1D< double > HiVector
1-D Buffer
Definition: HiCalTypes.h:40