|
SAGA API
v9.6
|
Go to the documentation of this file.
73 r2 = 1. - ((n ) / (n - p )) * r;
77 r2 = 1. - ((n - 1.) / (n - p - 1.)) * r;
81 r2 = 1. - ((n - 1.) / (n - p )) * r;
86 r2 = 1. - ((n - 3.) * r / (n - p - 1.)) * (1. + (2. * r) / (n - p + 1.));
90 r2 = 1. - ((n - 3.) * r / (n - p - 1.)) * (1. + (2. * r) / (n - p - 2.3));
94 r2 = 1. - ((n - 4.) * r / (n - p - 1.)) * (1. + (2. * r) / (n - p + 1.));
98 return( r2 < 0. ? 0. : r2 > 1. ? 1. : r2 );
344 double s_x = 0., s_y = 0., s_xx = 0., s_xy = 0., s_dx2 = 0., s_dy2 = 0., s_dxdy = 0.;
367 m_R = s_dxdy / sqrt(s_dx2 * s_dy2);
double Get_x(double y) const
double Get_Variance(void)
int Get_Count(void) const
bool Add_Row(double Value=0.)
double Get_y(double x) const
bool Set_Values(int nValues, double *x, double *y)
bool Create(const CSG_Vector &Vector)
double _X_Transform(double y)
bool Calculate(TSG_Regression_Type Type=REGRESSION_Linear, bool bStdError=false)
TSG_Regression_Type m_Type
static CSG_String Format(const char *Format,...)
bool Add_Values(double x, double y)
virtual ~CSG_Regression(void)
bool Create(bool bHoldValues=false)
const SG_Char * asString(void)
static double Get_F_Tail_from_R2(double R2, int nPredictors, int nSamples, TSG_Test_Distribution_Type Type=TESTDIST_TYPE_Right)
double SG_Regression_Get_Adjusted_R2(double r2, int n, int p, TSG_Regression_Correction Correction)
double _Y_Transform(double x)