Lines Matching refs:vi
421 for( int vi = 0; vi < numPrecalcIdx; vi++ ) in subsample_data() local
423 int ci = get_var_type(vi); in subsample_data()
431 …get_ord_var_data( data_root, vi, src_val_buf, src_idx_buf, &src_val, &src_idx, sample_indices_buf … in subsample_data()
434 int num_valid = data_root->get_num_valid(vi); in subsample_data()
440 (size_t)vi*sample_count + data_root->offset); in subsample_data()
453 (size_t)vi*sample_count + root->offset; in subsample_data()
499 for( int vi = 0; vi < var_count; vi++ ) in subsample_data() local
500 root->set_num_valid(vi, count); in subsample_data()
527 for( int vi = 0; vi < var_count; vi++ ) in CvCascadeBoostTrainData() local
529 var_type->data.i[vi] = vi; in CvCascadeBoostTrainData()
536 for( int vi = 1; vi <= var_count; vi++ ) in CvCascadeBoostTrainData() local
538 var_type->data.i[vi-1] = -vi; in CvCascadeBoostTrainData()
614 for( int vi = 0; vi < var_count; vi++ ) in setData() local
616 var_type->data.i[vi] = vi; in setData()
623 for( int vi = 1; vi <= var_count; vi++ ) in setData() local
625 var_type->data.i[vi-1] = -vi; in setData()
691 for( int vi = 0; vi < var_count; vi++ ) in setData() local
692 data_root->set_num_valid(vi, sample_count); in setData()
693 for( int vi = 0; vi < cat_var_count; vi++ ) in setData() local
694 cat_count->data.i[vi] = max_c_count; in setData()
741 void CvCascadeBoostTrainData::get_ord_var_data( CvDTreeNode* n, int vi, float* ordValuesBuf, int* s… in get_ord_var_data() argument
747 if ( vi < numPrecalcIdx ) in get_ord_var_data()
750 …*sortedIndices = buf->data.i + n->buf_idx*get_length_subbuf() + (size_t)vi*sample_count + n->offse… in get_ord_var_data()
754 (size_t)vi*sample_count + n->offset ); in get_ord_var_data()
761 if( vi < numPrecalcVal ) in get_ord_var_data()
767 ordValuesBuf[i] = valCache.at<float>( vi, idx); in get_ord_var_data()
776 ordValuesBuf[i] = (*featureEvaluator)( vi, idx); in get_ord_var_data()
785 if ( vi < numPrecalcVal ) in get_ord_var_data()
790 sampleValues[i] = valCache.at<float>( vi, sampleIndices[i] ); in get_ord_var_data()
798 sampleValues[i] = (*featureEvaluator)( vi, sampleIndices[i]); in get_ord_var_data()
810 const int* CvCascadeBoostTrainData::get_cat_var_data( CvDTreeNode* n, int vi, int* catValuesBuf ) in get_cat_var_data() argument
816 if ( vi < numPrecalcVal ) in get_cat_var_data()
819 catValuesBuf[i] = (int) valCache.at<float>( vi, sampleIndices[i]); in get_cat_var_data()
823 if( vi >= numPrecalcVal && vi < var_count ) in get_cat_var_data()
826 catValuesBuf[i] = (int)(*featureEvaluator)( vi, sampleIndices[i] ); in get_cat_var_data()
837 float CvCascadeBoostTrainData::getVarValue( int vi, int si ) in getVarValue() argument
839 if ( vi < numPrecalcVal && !valCache.empty() ) in getVarValue()
840 return valCache.at<float>( vi, si ); in getVarValue()
841 return (*featureEvaluator)( vi, si ); in getVarValue()
1149 for( int vi = 0; vi < ((CvCascadeBoostTrainData*)data)->numPrecalcIdx; vi++ ) in split_node_data() local
1151 int ci = data->get_var_type(vi); in split_node_data()
1155 int n1 = node->get_num_valid(vi); in split_node_data()
1161 …data->get_ord_var_data(node, vi, src_val_buf, src_sorted_idx_buf, &src_val, &src_sorted_idx, src_s… in split_node_data()
1170 vi*scount + left->offset); in split_node_data()
1196 vi*scount + left->offset; in split_node_data()
1198 vi*scount + right->offset; in split_node_data()
1324 for( int vi = 0; vi < data->var_count; vi++ ) in split_node_data() local
1326 left->set_num_valid(vi, (int)(nl)); in split_node_data()
1327 right->set_num_valid(vi, (int)(nr)); in split_node_data()