Lines Matching refs:cat_count
49 var_idx = var_type = cat_count = cat_ofs = cat_map =
63 var_idx = var_type = cat_count = cat_ofs = cat_map =
156 cvNorm( data->cat_count, cat_count, CV_C ) < FLT_EPSILON &&
265 CV_CALL( cat_count = cvCreateMat( 1, cat_var_count+1, CV_32SC1 ));
266 CV_CALL( cat_ofs = cvCreateMat( 1, cat_count->cols+1, CV_32SC1 ));
267 CV_CALL( cat_map = cvCreateMat( 1, cat_count->cols*10 + 128, CV_32SC1 ));
389 cat_count->data.i[ci] = c_count;
474 cat_count->data.i[cat_var_count] = 0;
920 cvReleaseMat( &cat_count );
942 return is_classifier ? cat_count->data.i[cat_var_count] : 0;
1053 if( cat_count && (cat_var_count > 0 || is_classifier) )
1055 CV_ASSERT( cat_count != 0 );
1056 cvWrite( fs, "cat_count", cat_count );
1167 CV_CALL( cat_count = (CvMat*)cvReadByName( fs, node, "cat_count" ));
1170 if( !CV_IS_MAT(cat_count) || !CV_IS_MAT(cat_map) ||
1171 cat_count->cols != 1 && cat_count->rows != 1 ||
1172 CV_MAT_TYPE(cat_count->type) != CV_32SC1 ||
1173 cat_count->cols + cat_count->rows - 1 != cat_var_count + is_classifier ||
1177 "Both cat_count and cat_map must exist and be valid 1d integer vectors of an appropriate size" );
1187 int val = cat_count->data.i[vi];
1189 CV_ERROR( CV_StsOutOfRange, "some of cat_count elements are out of range" );
1764 int _mi = data->cat_count->data.i[ci], mi = _mi;
1974 int mi = data->cat_count->data.i[ci];
2172 int i, mi = data->cat_count->data.i[data->get_var_type(vi)], l_win = 0;
2914 if( data->cat_count && !preprocessed_input ) // cache for categorical variables
2916 int n = data->cat_count->cols;
3062 int i, n = data->cat_count->data.i[ci], to_right = 0, default_dir;
3212 int i, n = data->cat_count->data.i[ci], inversed = 0, val;