#include <qxrdfitterringellipse.h>
|
void | evaluate (double *parm, double *xv, int np, int nx) |
|
|
static void | staticEvaluate (double *parm, double *xv, int np, int nx, void *adata) |
|
Definition at line 6 of file qxrdfitterringellipse.h.
QxrdFitterRingEllipse::QxrdFitterRingEllipse |
( |
QxrdCenterFinder * |
cf, |
|
|
int |
ringIndex, |
|
|
double |
x0, |
|
|
double |
y0 |
|
) |
| |
QxrdFitterRingEllipse::QxrdFitterRingEllipse |
( |
| ) |
|
void QxrdFitterRingEllipse::evaluate |
( |
double * |
parm, |
|
|
double * |
xv, |
|
|
int |
np, |
|
|
int |
nx |
|
) |
| |
|
private |
int QxrdFitterRingEllipse::fit |
( |
| ) |
|
|
virtual |
Implements QxrdFitter.
Definition at line 80 of file qxrdfitterringellipse.cpp.
References QxrdCenterFinder::countPowderRingPoints(), QxrdFitter::m_CenterFinder, m_FittedA, m_FittedB, m_FittedRot, m_FittedX, m_FittedY, QxrdFitter::m_Reason, m_RingIndex, m_X0, m_Y0, QxrdFitter::NoResult, QxrdCenterFinder::powderRingPoint(), staticEvaluate(), QxrdFitter::Successful, QxrdPowderPoint::x(), and QxrdPowderPoint::y().
Referenced by QxrdCenterFinder::fitPowderEllipse(), and QxrdCenterFinder::fitPowderEllipses().
88 for (
int i=0; i<npts; i++) {
91 double dx = pt.
x() -
m_X0;
92 double dy = pt.
y() -
m_Y0;
94 rsum += sqrt(dx*dx + dy*dy);
98 double info[LM_INFO_SZ];
102 parms[2] = rsum/npts;
103 parms[3] = rsum/npts;
107 parms, NULL, 5, npts,
109 NULL, info, NULL, NULL,
this);
int countPowderRingPoints() const
static void staticEvaluate(double *parm, double *xv, int np, int nx, void *adata)
QxrdCenterFinder * m_CenterFinder
QxrdPowderPoint powderRingPoint(int i) const
double QxrdFitterRingEllipse::fittedA |
( |
| ) |
const |
|
inline |
double QxrdFitterRingEllipse::fittedB |
( |
| ) |
const |
|
inline |
double QxrdFitterRingEllipse::fittedRot |
( |
| ) |
const |
|
inline |
double QxrdFitterRingEllipse::fittedX |
( |
| ) |
const |
|
inline |
double QxrdFitterRingEllipse::fittedY |
( |
| ) |
const |
|
inline |
int QxrdFitterRingEllipse::ringIndex |
( |
| ) |
const |
|
inline |
void QxrdFitterRingEllipse::staticEvaluate |
( |
double * |
parm, |
|
|
double * |
xv, |
|
|
int |
np, |
|
|
int |
nx, |
|
|
void * |
adata |
|
) |
| |
|
staticprivate |
double QxrdFitterRingEllipse::x0 |
( |
| ) |
const |
|
inline |
double QxrdFitterRingEllipse::y0 |
( |
| ) |
const |
|
inline |
double QxrdFitterRingEllipse::m_FittedA |
|
protected |
double QxrdFitterRingEllipse::m_FittedB |
|
protected |
double QxrdFitterRingEllipse::m_FittedRot |
|
protected |
double QxrdFitterRingEllipse::m_FittedX |
|
protected |
double QxrdFitterRingEllipse::m_FittedY |
|
protected |
int QxrdFitterRingEllipse::m_RingIndex |
|
protected |
double QxrdFitterRingEllipse::m_X0 |
|
protected |
double QxrdFitterRingEllipse::m_Y0 |
|
protected |
The documentation for this class was generated from the following files: