18 namespace Geom {
template <
class T>
class Point2D; }
33 {
return a0 + ax * x; }
35 {
return ax ? (y - a0) / ax : 0; }
37 {
return (x + ax * (y - a0)) / (1 + ax * ax); }
39 {
return getValue(*x); }
56 : a0(i0), ax(i1), ay(i2) {}
59 {
return a0 + ax * x + ay * y; }
61 {
return getValue(x[0],x[1]); }
83 void use(
const float*,
const float*,
int nrpts);
LineParameters< float > LinePars
Definition: linear.h:44
#define mExpClass(module)
Definition: commondefs.h:160
T getXValue(T y) const
Definition: linear.h:34
Steepness and intercept.
Definition: linear.h:26
LinePars lp
Parameters.
Definition: linear.h:79
PlanePars sd
Standard deviations in parameters.
Definition: linear.h:98
T ay
Definition: linear.h:63
LineParameters(T i0=0, T i1=0)
Definition: linear.h:29
Mathematical function.
Definition: mathfunc.h:61
linear stats in 2D.
Definition: linear.h:74
LinStats2D()
Definition: linear.h:77
T ax
Definition: linear.h:41
T getValue(T x) const
Definition: linear.h:32
PlaneParameters< float > PlanePars
Definition: linear.h:67
T getValue(const T *x) const
Definition: linear.h:38
T getValue(const T *x) const
Definition: linear.h:60
Steepnesses and intercept.
Definition: linear.h:52
A Math Function as in F(x,y).
Definition: mathfunc.h:105
T getValue(T x, T y) const
Definition: linear.h:58
LinePars sd
Standard deviations in parameters.
Definition: linear.h:80
LinStats3D()
Definition: linear.h:95
linear stats in 3D.
Definition: linear.h:92
T getProjectedX(T x, T y) const
Definition: linear.h:36
PlanePars pp
Parameters.
Definition: linear.h:97
Definition: geometry.h:19
PlaneParameters(T i0=0, T i1=0, T i2=0)
Definition: linear.h:55
#define mClass(module)
Definition: commondefs.h:164
float corrcoeff
Correlation coefficient.
Definition: linear.h:99
float corrcoeff
Correlation coefficient.
Definition: linear.h:81