/external/opencv/ml/src/ |
D | mlrtrees.cpp | 107 int var_count; in find_best_split() local 111 var_count = active_var_mask->cols; in find_best_split() 113 CV_ASSERT( var_count == data->var_count ); in find_best_split() 115 for( vi = 0; vi < var_count; vi++ ) in find_best_split() 118 int i1 = cvRandInt(rng) % var_count; in find_best_split() 119 int i2 = cvRandInt(rng) % var_count; in find_best_split() 124 for( vi = 0; vi < data->var_count; vi++ ) in find_best_split() 241 int var_count = 0; in train() local 253 var_count = data->var_count; in train() 254 if( params.nactive_vars > var_count ) in train() [all …]
|
D | mlnbayes.cpp | 45 var_count = var_all = 0; in CvNormalBayesClassifier() 91 var_count = var_all = 0; in CvNormalBayesClassifier() 142 var_count = _var_count; in train() 161 CV_CALL(count[cls] = cvCreateMat( 1, var_count, CV_32SC1 )); in train() 162 CV_CALL(sum[cls] = cvCreateMat( 1, var_count, CV_64FC1 )); in train() 163 CV_CALL(productsum[cls] = cvCreateMat( var_count, var_count, CV_64FC1 )); in train() 164 CV_CALL(avg[cls] = cvCreateMat( 1, var_count, CV_64FC1 )); in train() 165 CV_CALL(inv_eigen_values[cls] = cvCreateMat( 1, var_count, CV_64FC1 )); in train() 166 CV_CALL(cov_rotate_mats[cls] = cvCreateMat( var_count, var_count, CV_64FC1 )); in train() 178 if( _var_count != var_count || _var_all != var_all || !(!_var_idx && !var_idx || in train() [all …]
|
D | mlsvm.cpp | 231 void CvSVMKernel::calc_non_rbf_base( int vcount, int var_count, const float** vecs, in calc_non_rbf_base() argument 240 for( k = 0; k <= var_count - 4; k += 4 ) in calc_non_rbf_base() 243 for( ; k < var_count; k++ ) in calc_non_rbf_base() 250 void CvSVMKernel::calc_linear( int vcount, int var_count, const float** vecs, in calc_linear() argument 253 calc_non_rbf_base( vcount, var_count, vecs, another, results, 1, 0 ); in calc_linear() 257 void CvSVMKernel::calc_poly( int vcount, int var_count, const float** vecs, in calc_poly() argument 261 calc_non_rbf_base( vcount, var_count, vecs, another, results, params->gamma, params->coef0 ); in calc_poly() 266 void CvSVMKernel::calc_sigmoid( int vcount, int var_count, const float** vecs, in calc_sigmoid() argument 270 calc_non_rbf_base( vcount, var_count, vecs, another, results, in calc_sigmoid() 285 void CvSVMKernel::calc_rbf( int vcount, int var_count, const float** vecs, in calc_rbf() argument [all …]
|
D | mltree.cpp | 154 if( !(data->var_count == var_count && in CV_IMPLEMENT_QSORT_EX() 209 var_count = var_all; in CV_IMPLEMENT_QSORT_EX() 222 var_count = var_idx->rows + var_idx->cols - 1; in CV_IMPLEMENT_QSORT_EX() 235 CV_CALL( var_type = cvCreateMat( 1, var_count+2, CV_32SC1 )); in CV_IMPLEMENT_QSORT_EX() 243 for( vi = 0; vi < var_count; vi++ ) in CV_IMPLEMENT_QSORT_EX() 254 var_type->data.i[var_count] = cat_var_count; in CV_IMPLEMENT_QSORT_EX() 255 var_type->data.i[var_count+1] = cat_var_count+1; in CV_IMPLEMENT_QSORT_EX() 279 nv_size = var_count*sizeof(int); in CV_IMPLEMENT_QSORT_EX() 306 for( vi = 0; vi <= var_count; vi++ ) in CV_IMPLEMENT_QSORT_EX() 315 if( vi < var_count ) // analyze i-th input variable in CV_IMPLEMENT_QSORT_EX() [all …]
|
D | mlknearest.cpp | 78 var_count = 0; in clear() 86 int CvKNearest::get_var_count() const { return var_count; } in get_var_count() 117 if( _update_base && _dims != var_count ) in train() 126 var_count = _dims; in train() 153 int i, j, count = end - start, k1 = 0, k2 = 0, d = var_count; in find_neighbors_direct() 324 _samples->cols != var_count ) in find_nearest()
|
D | ml_inner_functions.cpp | 580 int var_count = var_all; in cvPreprocessVarType() local 594 if( /*tm_size != var_count &&*/ tm_size != var_count + 1 ) in cvPreprocessVarType() 598 if( response_type && tm_size > var_count ) in cvPreprocessVarType() 599 *response_type = var_type->data.ptr[var_count*tm_step] != 0; in cvPreprocessVarType() 606 if( var_idx->rows + var_idx->cols - 1 > var_count ) in cvPreprocessVarType() 609 var_count = var_idx->rows + var_idx->cols - 1; in cvPreprocessVarType() 612 CV_CALL( out_var_type = cvCreateMat( 1, var_count, CV_8UC1 )); in cvPreprocessVarType() 616 for( i = 0; i < var_count; i++ ) in cvPreprocessVarType() 850 int i, j, var_count, sample_count, s_step, v_step; in cvGetTrainSamples() local 858 var_count = var_idx ? var_idx->cols + var_idx->rows - 1 : in cvGetTrainSamples() [all …]
|
D | mlboost.cpp | 1064 _sample = cvMat( 1, data->var_count, CV_32F ); in update_weights() 1065 _mask = cvMat( 1, data->var_count, CV_8U ); in update_weights() 1274 int i, weak_count, var_count; in predict() local 1290 _sample->cols + _sample->rows - 1 != data->var_count && raw_mode ) in predict() 1322 var_count = data->var_count; in predict() 1339 bufsize = var_count*(sizeof(float) + sizeof(uchar)); in predict() 1348 dst_mask = (uchar*)(buf + var_count); in predict() 1359 for( i = 0; i < var_count; i++ ) in predict() 1400 sample = cvMat( 1, var_count, CV_32F, dst_sample ); in predict() 1405 missing = cvMat( 1, var_count, CV_8UC1, dst_mask ); in predict() [all …]
|
/external/opencv3/samples/cpp/ |
D | letter_recog.cpp | 39 read_num_class_data( const string& filename, int var_count, in read_num_class_data() argument 45 Mat el_ptr(1, var_count, CV_32F); in read_num_class_data() 66 for( i = 0; i < var_count; i++ ) in read_num_class_data() 72 if( i < var_count ) in read_num_class_data() 238 int var_count = data.cols; in build_boost_classifier() local 259 Mat new_data( ntrain_samples*class_count, var_count + 1, CV_32F ); in build_boost_classifier() 270 memcpy(new_data_row, data_row, var_count*sizeof(data_row[0])); in build_boost_classifier() 271 new_data_row[var_count] = (float)j; in build_boost_classifier() 276 Mat var_type( 1, var_count + 2, CV_8U ); in build_boost_classifier() 278 var_type.at<uchar>(var_count) = var_type.at<uchar>(var_count+1) = VAR_CATEGORICAL; in build_boost_classifier() [all …]
|
/external/opencv3/modules/ml/src/ |
D | svm.cpp | 165 void calc_non_rbf_base( int vcount, int var_count, const float* vecs, in calc_non_rbf_base() argument 172 const float* sample = &vecs[j*var_count]; in calc_non_rbf_base() 174 for( k = 0; k <= var_count - 4; k += 4 ) in calc_non_rbf_base() 177 for( ; k < var_count; k++ ) in calc_non_rbf_base() 183 void calc_linear( int vcount, int var_count, const float* vecs, in calc_linear() argument 186 calc_non_rbf_base( vcount, var_count, vecs, another, results, 1, 0 ); in calc_linear() 189 void calc_poly( int vcount, int var_count, const float* vecs, in calc_poly() argument 193 calc_non_rbf_base( vcount, var_count, vecs, another, results, params.gamma, params.coef0 ); in calc_poly() 198 void calc_sigmoid( int vcount, int var_count, const float* vecs, in calc_sigmoid() argument 202 calc_non_rbf_base( vcount, var_count, vecs, another, results, in calc_sigmoid() [all …]
|
/external/opencv3/apps/traincascade/ |
D | old_ml_data.cpp | 400 int var_count = 0; in change_var_type() local 405 var_count = values->cols; in change_var_type() 407 if ( var_idx < 0 || var_idx >= var_count) in change_var_type() 429 int var_count = 0, set_var_type_count = 0; in set_var_types() local 433 var_count = values->cols; in set_var_types() 542 if (set_var_type_count != var_count) in set_var_types() 597 int var_count = 0; in get_responses() local 601 var_count = values->cols; in get_responses() 603 if ( response_idx < 0 || response_idx >= var_count ) in get_responses() 776 int var_count = 0; in change_var_idx() local [all …]
|
D | boost.cpp | 386 for( i = 0; i < var_count; i++ ) in subsample_data() 499 for( int vi = 0; vi < var_count; vi++ ) in subsample_data() 515 var_all = var_count = (int)_featureEvaluator->getNumFeatures(); in CvCascadeBoostTrainData() 521 var_type = cvCreateMat( 1, var_count + 2, CV_32SC1 ); in CvCascadeBoostTrainData() 525 cat_var_count = var_count; in CvCascadeBoostTrainData() 527 for( int vi = 0; vi < var_count; vi++ ) in CvCascadeBoostTrainData() 535 ord_var_count = var_count; in CvCascadeBoostTrainData() 536 for( int vi = 1; vi <= var_count; vi++ ) in CvCascadeBoostTrainData() 541 var_type->data.i[var_count] = cat_var_count; in CvCascadeBoostTrainData() 542 var_type->data.i[var_count+1] = cat_var_count+1; in CvCascadeBoostTrainData() [all …]
|
D | old_ml_tree.cpp | 182 if( !(data->var_count == var_count && in set_data() 242 var_count = var_all; in set_data() 255 var_count = var_idx->rows + var_idx->cols - 1; in set_data() 273 CV_CALL( var_type0 = cvPreprocessVarType( _var_type, var_idx, var_count, &r_type )); in set_data() 275 CV_CALL( var_type = cvCreateMat( 1, var_count+2, CV_32SC1 )); in set_data() 283 for( vi = 0; vi < var_count; vi++ ) in set_data() 294 var_type->data.i[var_count] = cat_var_count; in set_data() 295 var_type->data.i[var_count+1] = cat_var_count+1; in set_data() 301 work_var_count = var_count + (is_classifier ? 1 : 0) // for responses class_labels in set_data() 355 nv_size = var_count*sizeof(int); in set_data() [all …]
|
D | old_ml_inner_functions.cpp | 497 int var_count, int* response_type ) in cvPreprocessVarType() argument 524 if( /*tm_size != var_count &&*/ tm_size != var_count + 1 ) in cvPreprocessVarType() 528 if( response_type && tm_size > var_count ) in cvPreprocessVarType() 529 *response_type = var_type->data.ptr[var_count*tm_step] != 0; in cvPreprocessVarType() 536 if( var_idx->rows + var_idx->cols - 1 > var_count ) in cvPreprocessVarType() 539 var_count = var_idx->rows + var_idx->cols - 1; in cvPreprocessVarType() 542 CV_CALL( out_var_type = cvCreateMat( 1, var_count, CV_8UC1 )); in cvPreprocessVarType() 546 for( i = 0; i < var_count; i++ ) in cvPreprocessVarType() 780 int i, j, var_count, sample_count, s_step, v_step; in cvGetTrainSamples() local 788 var_count = var_idx ? var_idx->cols + var_idx->rows - 1 : in cvGetTrainSamples() [all …]
|
D | old_ml.hpp | 217 int var_count, var_all; member in CvNormalBayesClassifier 280 int max_k, var_count; member in CvKNearest 331 virtual void calc_intersec( int vcount, int var_count, const float** vecs, 372 CvSVMSolver( int count, int var_count, const float** samples, schar* y, 376 virtual bool create( int count, int var_count, const float** samples, schar* y, 385 virtual bool solve_c_svc( int count, int var_count, const float** samples, schar* y, 388 virtual bool solve_nu_svc( int count, int var_count, const float** samples, schar* y, 391 virtual bool solve_one_class( int count, int var_count, const float** samples, 395 virtual bool solve_eps_svr( int count, int var_count, const float** samples, const float* y, 399 virtual bool solve_nu_svr( int count, int var_count, const float** samples, const float* y, [all …]
|
D | old_ml_boost.cpp | 1277 _sample = cvMat( 1, data->var_count, CV_32F ); in update_weights() 1278 _mask = cvMat( 1, data->var_count, CV_8U ); in update_weights() 1495 mask = cvCreateMat( 1, data->var_count, CV_8U ); in get_active_vars() 1496 inv_map = cvCreateMat( 1, data->var_count, CV_32S ); in get_active_vars() 1541 for( i = j = 0; i < data->var_count; i++ ) in get_active_vars() 1653 int var_count = active_vars->cols; in predict() local 1675 sample = cv::Mat(1, var_count, CV_32FC1); in predict() 1676 missing = cv::Mat(1, var_count, CV_8UC1); in predict() 1690 for( i = 0; i < var_count; i++ ) in predict() 1824 value = (float)cmap[cofs[vtype[data->var_count]] + cls_idx]; in predict()
|
/external/opencv/ml/include/ |
D | ml.h | 257 int var_count, var_all; 308 int max_k, var_count; variable 397 CvSVMSolver( int count, int var_count, const float** samples, schar* y, 401 virtual bool create( int count, int var_count, const float** samples, schar* y, 410 virtual bool solve_c_svc( int count, int var_count, const float** samples, schar* y, 413 virtual bool solve_nu_svc( int count, int var_count, const float** samples, schar* y, 416 virtual bool solve_one_class( int count, int var_count, const float** samples, 420 virtual bool solve_eps_svr( int count, int var_count, const float** samples, const float* y, 424 virtual bool solve_nu_svr( int count, int var_count, const float** samples, const float* y, 432 int var_count; variable [all …]
|
/external/v8/src/ast/ |
D | scopes.cc | 704 int var_count = vars.length(); in CollectStackAndContextLocals() local 705 for (int i = 0; i < var_count; i++) { in CollectStackAndContextLocals() 1602 int var_count = vars.length(); in AllocateNonParameterLocalsAndDeclaredGlobals() local 1603 for (int i = 0; i < var_count; i++) { in AllocateNonParameterLocalsAndDeclaredGlobals() 1608 for (int i = 0; i < var_count; i++) { in AllocateNonParameterLocalsAndDeclaredGlobals()
|