|
YODA - Yet more Objects for Data Analysis 2.0.2
|
Go to the documentation of this file.
22 template < class Derived>
28 void scaleX( double factor) { static_cast<Derived* >( this)->scale(1,factor); }
35 double xMean() const { return static_cast<const Derived* >( this)-> mean(1); }
37 double xStdDev() const { return static_cast<const Derived* >( this)-> stdDev(1); }
38 double xStdErr() const { return static_cast<const Derived* >( this)-> stdErr(1); }
39 double xRMS() const { return static_cast<const Derived* >( this)-> RMS(1); }
40 double sumWX() const { return static_cast<const Derived* >( this)->sumW(1); }
41 double sumWX2() const { return static_cast<const Derived* >( this)->sumW2(1); }
48 template < class Derived>
54 void scaleY( double factor) { static_cast<Derived* >( this)->scale(2,factor); }
57 static_cast<Derived* >( this)->scale(1,fx);
58 static_cast<Derived* >( this)->scale(2,fy);
66 double yMean() const { return static_cast<const Derived* >( this)-> mean(2); }
68 double yStdDev() const { return static_cast<const Derived* >( this)-> stdDev(2); }
69 double yStdErr() const { return static_cast<const Derived* >( this)-> stdErr(2); }
70 double yRMS() const { return static_cast<const Derived* >( this)-> RMS(2); }
71 double sumWY() const { return static_cast<const Derived* >( this)->sumW(2); }
72 double sumWY2() const { return static_cast<const Derived* >( this)->sumW2(2); }
73 double sumWXY() const { return static_cast<const Derived* >( this)->crossTerm(0,1); }
80 template < class Derived>
87 static_cast<Derived* >( this)->scale(3,factor);
91 static_cast<Derived* >( this)->scale(1,fx);
92 static_cast<Derived* >( this)->scale(3,fz);
96 static_cast<Derived* >( this)->scale(2,fy);
97 static_cast<Derived* >( this)->scale(3,fz);
101 static_cast<Derived* >( this)->scale(1,fx);
102 static_cast<Derived* >( this)->scale(2,fy);
103 static_cast<Derived* >( this)->scale(3,fz);
111 double zMean() const { return static_cast<const Derived* >( this)-> mean(3); }
113 double zStdDev() const { return static_cast<const Derived* >( this)-> stdDev(3); }
114 double zStdErr() const { return static_cast<const Derived* >( this)-> stdErr(3); }
115 double zRMS() const { return static_cast<const Derived* >( this)-> RMS(3); }
116 double sumWZ() const { return static_cast<const Derived* >( this)->sumW(3); }
117 double sumWZ2() const { return static_cast<const Derived* >( this)->sumW2(3); }
118 double sumWXZ() const { return static_cast<const Derived* >( this)->crossTerm(0,2); }
119 double sumWYZ() const { return static_cast<const Derived* >( this)->crossTerm(1,2); }
Anonymous namespace to limit visibility.
double stdErr(const double sumWX, const double sumW, const double sumWX2, const double sumW2) Calculate the weighted standard error of a sample.
double RMS(const double sumWX2, const double sumW, const double sumW2) Calculate the weighted RMS of a sample.
double stdDev(const double sumWX, const double sumW, const double sumWX2, const double sumW2) Calculate the weighted standard deviation of a sample.
double variance(const double sumWX, const double sumW, const double sumWX2, const double sumW2) Calculate the weighted variance of a sample.
double mean(const std::vector< int > &sample) Calculate the mean of a sample.
CRTP mixin introducing convenience aliases along X axis.
void scaleX(double factor)
CRTP mixin introducing convenience aliases along Y axis.
void scaleY(double factor)
void scaleXY(double fx, double fy)
CRTP mixin introducing convenience aliases along Z axis.
void scaleZ(double factor)
void scaleYZ(double fy, double fz)
void scaleXZ(double fx, double fz)
void scaleXYZ(double fx, double fy, double fz)
|