Lines Matching refs:s_len
414 int i, j, k, s_len;
465 s_len = sampleIdx->rows + sampleIdx->cols - 1;
480 if( s_len != samples_all )
485 for (i = 0; i < s_len; i++)
491 s_len = samples_selected;
494 if (s_len > samples_all)
497 samples_selected = s_len;
506 (int*)cvAlloc (2 * s_len * sizeof(int)));
511 for (i = 0; i < s_len; i++)
523 for (i = 0; i < s_len; i++)
531 qsort (res_s_data, s_len, sizeof(res_s_data[0]), icvCmpIntegers);
534 res_s_data[s_len - 1] >= samples_all)
536 for (i = 1; i < s_len; i++)
544 s_len = samples_all;
545 CV_CALL (res_s_data = crVal->sampleIdxAll = (int*)cvAlloc (2 * s_len * sizeof(int)));
546 for (i = 0; i < s_len; i++)
554 te_s_data = res_s_data + s_len;
555 for (i = s_len; i > 1; i--)
565 te_s_data = res_s_data + s_len;
566 for (i = 0; i < s_len; i++)
574 if (k_fold > s_len)
583 *folds++ = cvRound (i * s_len * 1. / k_fold);
585 *folds = s_len;
588 crVal->max_fold_size = (s_len - 1) / k_fold + 1;
594 if (k >= s_len)
599 crVal->folds_all = k = (s_len - 1) / k + 1;
606 *folds = s_len;
616 crVal->samples_all = s_len;