MISR Toolkit
1.5.1
|
Go to the source code of this file.
Functions | |
MTKt_status | MtkLinearRegressionCalc (int Size, const double *X, const double *Y, const double *Y_Sigma, double *A, double *B, double *Correlation) |
Use linear regression to fit a set of observations (x,y) to the model: y(x) = a + b * x. The values of 'x' are assumed to be known exactly. The values of 'y' may have an associated uncertainty, 'y_sigma'. Measurements with larger uncertainty are given less weight. Uncertainty must be greater than 0. More... | |
MTKt_status MtkLinearRegressionCalc | ( | int | Size, |
const double * | X, | ||
const double * | Y, | ||
const double * | Y_Sigma, | ||
double * | A, | ||
double * | B, | ||
double * | Correlation | ||
) |
Use linear regression to fit a set of observations (x,y) to the model: y(x) = a + b * x. The values of 'x' are assumed to be known exactly. The values of 'y' may have an associated uncertainty, 'y_sigma'. Measurements with larger uncertainty are given less weight. Uncertainty must be greater than 0.
[in] | Size | Size of X and Y arrays |
[in] | X | X array |
[in] | Y | Y array |
[in] | Y_Sigma | Uncertainty in Y |
[out] | A | A |
[out] | B | B |
[out] | Correlation | Correlation |
Definition at line 39 of file MtkLinearRegressionCalc.c.