Change length of resid buffer to MAX_POINTS
This commit is contained in:
parent
7ba6b617a1
commit
3b4e4b785d
1 changed files with 1 additions and 2 deletions
|
@ -218,7 +218,6 @@ n_runs_from_residuals(double *resid, int n)
|
||||||
/* Return a boolean indicating whether we had enough points for
|
/* Return a boolean indicating whether we had enough points for
|
||||||
regression */
|
regression */
|
||||||
|
|
||||||
#define RESID_SIZE 1024
|
|
||||||
#define MIN_SAMPLES_FOR_REGRESS 3
|
#define MIN_SAMPLES_FOR_REGRESS 3
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -252,7 +251,7 @@ RGR_FindBestRegression
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
double P, Q, U, V, W; /* total */
|
double P, Q, U, V, W; /* total */
|
||||||
double resid[RESID_SIZE];
|
double resid[MAX_POINTS];
|
||||||
double ss;
|
double ss;
|
||||||
double a, b, u, ui, aa;
|
double a, b, u, ui, aa;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue