Skip to content

value of hypsometric integral ( ecdf() )

2 messages · Kjetil Halvorsen, Rado Bonk

#
On 3 Sep 2003 at 17:31, Rado Bonk wrote:
?
It is not really clear what you want, since what you call the 
"hypsometric" curve is really the cumulative distribution function, 
so its integral is infinite.

Does the following help?
function (v)  
 - attr(*, "class")= chr [1:3] "ecdf" "stepfun" "function"
 - attr(*, "call")= language ecdf(volcano)
[1] 0.4586395
function (f, lower, upper, subdivisions = 100, rel.tol = 
.Machine$double.eps^0.25, 
    abs.tol = rel.tol, stop.on.error = TRUE, keep.xy = FALSE, 
    aux = NULL, ...) 
NULL
[1] 0.1066516 0.1221029 0.1371773 0.1535708 0.1727907 0.1929527 
0.2127379
 [8] 0.2317694 0.2534389 0.2726588 0.3060109
Error in integrate(test, 80, 200) : maximum number of subdivisions 
reached
69.81223 with absolute error < 0.0033
Kjetil Halvorsen
#
Hi R-users,

How can I compute the area below the curve (so called "hypsometric
integral") plotted by:

plot(ecdf(volcano), do.points=F, verticals=T)

Thanks,

Rado