I'm also confused about this.

How does an occurence of pixels = http://en.wikipedia.org/wiki/Pixel lead to 19 data values ?

Bob

]]>hi tina123,

If you look at this page:

http://www.mathsisfun.com/definitions/histogram.html

you will see you require a range of data for each frequency to make a histogram.

The best you can do with these data is a bar graph.

Please explain where the data comes from.

Bob

Well you make me more confuse .

As far as i understand , histogram is the occurrence Of Pixels .

so ,

0 0 0 0 1 1 5 4 666 1 1 0 0 0 0 0 0 0 0

Now histogram would be like this

Number of occurrence of 0 ==> 12

Number of occurrence of 1 ==> 4

Number of occurrence of 4 ==> 1

Number of occurrence of 5 ==> 1

Number of occurrence of 666 ==> 1

to show it in bar graph,

0 is 12 times .

1 is 4 timse .

4 is 1 times

5 is 1 times

and 666 is 1 times .

so if we wanna get mean of hitogram . we can do like

sum of all occurence / totalbins.

That's what i know .

]]>If you look at this page:

http://www.mathsisfun.com/definitions/histogram.html

you will see you require a range of data for each frequency to make a histogram.

The best you can do with these data is a bar graph.

Please explain where the data comes from.

Bob

]]>Hy wait .. I have to get histogram 1st .

and then get mean from histogram ..

Ok please help me to find histogram of above image .

thanks

The mean is not 1

It is also not a histogram and the data range is not continuous.

I wonder: did you want 666 or rather 6 then 6 then 6.

Bob

]]>0 0 0 0 1 1 5 4 666 1 1 0 0 0 0 0 0 0 0

Now histogram would be like this

Number of occurrence of 0 ==> 12

Number of occurrence of 1 ==> 4

Number of occurrence of 4 ==> 1

Number of occurrence of 5 ==> 1

Number of occurrence of 666 ==> 1

mean : 12 +4 +1 +1 +1 / total number of points.

mean = 19/19 == > 1

Now issue is i wanna show mean in color form in histogram .

but how can we get location of mean in histogram like in x bins and y probability ?

Where will be mean locate?