#include <qxrdfitterringcircle.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 qxrdfitterringcircle.h.
QxrdFitterRingCircle::QxrdFitterRingCircle |
( |
QxrdCenterFinder * |
cf, |
|
|
int |
ringIndex, |
|
|
double |
x0, |
|
|
double |
y0 |
|
) |
| |
QxrdFitterRingCircle::QxrdFitterRingCircle |
( |
| ) |
|
void QxrdFitterRingCircle::evaluate |
( |
double * |
parm, |
|
|
double * |
xv, |
|
|
int |
np, |
|
|
int |
nx |
|
) |
| |
|
private |
int QxrdFitterRingCircle::fit |
( |
| ) |
|
|
virtual |
Implements QxrdFitter.
Definition at line 66 of file qxrdfitterringcircle.cpp.
References QxrdCenterFinder::countPowderRingPoints(), QxrdFitter::m_CenterFinder, m_FittedR, 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::fitPowderCircle().
75 for (
int i=0; i<npts; i++) {
78 double dx = pt.
x() -
m_X0;
79 double dy = pt.
y() -
m_Y0;
81 rsum += sqrt(dx*dx + dy*dy);
85 double info[LM_INFO_SZ];
94 NULL, info, NULL, NULL,
this);
int countPowderRingPoints() const
QxrdCenterFinder * m_CenterFinder
QxrdPowderPoint powderRingPoint(int i) const
static void staticEvaluate(double *parm, double *xv, int np, int nx, void *adata)
double QxrdFitterRingCircle::fittedR |
( |
| ) |
const |
|
inline |
double QxrdFitterRingCircle::fittedX |
( |
| ) |
const |
|
inline |
double QxrdFitterRingCircle::fittedY |
( |
| ) |
const |
|
inline |
int QxrdFitterRingCircle::ringIndex |
( |
| ) |
const |
|
inline |
void QxrdFitterRingCircle::staticEvaluate |
( |
double * |
parm, |
|
|
double * |
xv, |
|
|
int |
np, |
|
|
int |
nx, |
|
|
void * |
adata |
|
) |
| |
|
staticprivate |
double QxrdFitterRingCircle::x0 |
( |
| ) |
const |
|
inline |
double QxrdFitterRingCircle::y0 |
( |
| ) |
const |
|
inline |
double QxrdFitterRingCircle::m_FittedR |
|
protected |
double QxrdFitterRingCircle::m_FittedX |
|
protected |
double QxrdFitterRingCircle::m_FittedY |
|
protected |
int QxrdFitterRingCircle::m_RingIndex |
|
protected |
double QxrdFitterRingCircle::m_X0 |
|
protected |
double QxrdFitterRingCircle::m_Y0 |
|
protected |
The documentation for this class was generated from the following files: