Home
last modified time | relevance | path

Searched refs:cls_count (Results 1 – 2 of 2) sorted by relevance

/external/opencv/ml/src/
Dml_inner_functions.cpp724 int cls_count = 1, prev_cls, prev_i; in cvPreprocessCategoricalResponses() local
796 cls_count += *response_ptr[i] != *response_ptr[i-1]; in cvPreprocessCategoricalResponses()
798 if( cls_count < 2 ) in cvPreprocessCategoricalResponses()
801 CV_CALL( *out_response_map = cvCreateMat( 1, cls_count, CV_32SC1 )); in cvPreprocessCategoricalResponses()
805 CV_CALL( *class_counts = cvCreateMat( 1, cls_count, CV_32SC1 )); in cvPreprocessCategoricalResponses()
811 cls_count = -1; in cvPreprocessCategoricalResponses()
819 if( cls_counts && cls_count >= 0 ) in cvPreprocessCategoricalResponses()
820 cls_counts[cls_count] = i - prev_i; in cvPreprocessCategoricalResponses()
821 cls_map[++cls_count] = prev_cls = cur_cls; in cvPreprocessCategoricalResponses()
824 *response_ptr[i] = cls_count; in cvPreprocessCategoricalResponses()
[all …]
Dmltree.cpp1351 int* cls_count = data->counts->data.i; in try_split_node() local
1354 nz += cls_count[i] != 0; in try_split_node()
2270 int* cls_count = data->counts->data.i; in calc_node_value() local
2279 cls_count[k] = 0; in calc_node_value()
2284 cls_count[responses[i]]++; in calc_node_value()
2300 cls_count[k] += cv_cls_count[j*m + k]; in calc_node_value()
2309 int n_k = cls_count[k]; in calc_node_value()
2320 double val = cls_count[k]*priors[k]; in calc_node_value()
2343 double val = cls_count[k]*w - val_k; in calc_node_value()