[scilab-Users] Question about histograms

Mathieu Dubois mathieu.dubois at limsi.fr
Wed May 19 09:49:53 CEST 2010


>> the documentation of the dsearch and histplot functions says that "the
>> classes are defined by C1 = [x(1), x(2)] and Ci = ( x(i), x(i+1)] for i
>> >= 2". I was wondering why the first class is different. Is there any
>> reason?
>
> An interval defined as [...] is not the same as (...]
Yes I know about the notation!

My question was why is it like that?

For instance in matlab, the histc function "counts the value x(i) [in 
n(k)] if edges(k) <= x(i) < edges(k+1). The last bin counts any values 
of x that match edges(end)".

This seems a more natural definition to me...

Mathieu



More information about the users mailing list