Lines Matching refs:si
232 int si = w->sidx[i]; in updateWeightsAndTrim() local
233 double wval = w->sample_weights[si]; in updateWeightsAndTrim()
235 err += wval*(result[i] != w->cat_responses[si]); in updateWeightsAndTrim()
246 int si = w->sidx[i]; in updateWeightsAndTrim() local
247 double wval = w->sample_weights[si]; in updateWeightsAndTrim()
248 if( result[i] != w->cat_responses[si] ) in updateWeightsAndTrim()
251 w->sample_weights[si] = wval; in updateWeightsAndTrim()
267 int si = w->sidx[i]; in updateWeightsAndTrim() local
268 CV_Assert( std::abs(w->ord_responses[si]) == 1 ); in updateWeightsAndTrim()
269 double wval = w->sample_weights[si]*std::exp(-result[i]*w->ord_responses[si]); in updateWeightsAndTrim()
271 w->sample_weights[si] = wval; in updateWeightsAndTrim()
290 int si = w->sidx[i]; in updateWeightsAndTrim() local
294 w->sample_weights[si] = wval; in updateWeightsAndTrim()
296 if( w->ord_responses[si] > 0 ) in updateWeightsAndTrim()
299 w->ord_responses[si] = std::min(z, lb_z_max); in updateWeightsAndTrim()
304 w->ord_responses[si] = -std::min(z, lb_z_max); in updateWeightsAndTrim()
353 int si = w->sidx[i]; in updateWeightsAndTrim() local
354 if( w->sample_weights[si] >= threshold ) in updateWeightsAndTrim()
355 sidx.push_back(si); in updateWeightsAndTrim()