Add assert for parameter m in RGR_FindBestRegression()
This commit is contained in:
parent
f38872eab3
commit
7261d11bb0
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ RGR_FindBestRegression
|
||||||
int start, resid_start, nruns, npoints;
|
int start, resid_start, nruns, npoints;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
assert(n <= MAX_POINTS);
|
assert(n <= MAX_POINTS && m >= 0);
|
||||||
assert(n * REGRESS_RUNS_RATIO < sizeof (critical_runs) / sizeof (critical_runs[0]));
|
assert(n * REGRESS_RUNS_RATIO < sizeof (critical_runs) / sizeof (critical_runs[0]));
|
||||||
|
|
||||||
if (n < MIN_SAMPLES_FOR_REGRESS) {
|
if (n < MIN_SAMPLES_FOR_REGRESS) {
|
||||||
|
|
Loading…
Reference in a new issue