Lines Matching refs:ih
317 int ih, it;
338 for ( ih = 0; ih < HISTOGRAM_SIZE; ih++ )
339 P2[ih] = 1.0 - P1[ih];
342 for ( ih = 0; ih < HISTOGRAM_SIZE; ih++ )
343 if (P1[ih] != 0)
345 first_bin = ih;
349 for ( ih = HISTOGRAM_SIZE - 1; ih >= first_bin; ih-- )
350 if (P2[ih] != 0)
352 last_bin = ih;
365 for ( ih = 0; ih <= it; ih++ )
366 if (norm_histo[ih] != 0)
367 ent_back -= ( norm_histo[ih] / P1[it] ) * log ( norm_histo[ih] / P1[it] );
371 for ( ih = it + 1; ih < HISTOGRAM_SIZE; ih++ )
372 if (norm_histo[ih] != 0)
373 ent_obj -= ( norm_histo[ih] / P2[it] ) * log ( norm_histo[ih] / P2[it] );