Hi there,

I was wondering why

x<-rnorm(n=5000,mean=1.5,sd=0.25)
h<-hist(x)
sum(h$density)

[1] 10

I thought the integral of the histogram should be one? These seems  
strange to me, or am I being silly...

Regards Luke Spadavecchia

PS. I'm using R 2.5.1 on Mac OSX

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to