[Insight-users] Histogram question

Luis Ibanez luis.ibanez at kitware.com
Mon, 02 Feb 2004 14:03:17 -0500


Hi Benjamin,

The intervals for bins in the Histogram are

           [ bin_min,  bin_max )

The membership to intervals is computed in

   Insight/Code/Numerics/Statistics/itkHistogram.txx

See for example lines 222 to 245

>       {
>         end = mid - 1 ;
>         } 
>       else if (tempMeasurement > median)
>         {
>         if (tempMeasurement < m_Max[dim][mid])
>           {
>           index[dim] = mid ;
>           break ;
>           }
>               
>         begin = mid + 1 ;
>         }


Please let us know if you find that the bins
are not behaving as expected.


Thanks


    Luis


-------------------------

Benjamin King wrote:

> Hello,
> 
> if I have a histogram bin with minimum a and maximum b, does that 
> correspond to the set of measurement vectors
> [a,b] or [a,b)?
> 
> cheers,
>   Benjamin
>