The command integral
is generic.
This is the method for objects of class "tessfun"
.
The integrand f
should be a function of class
"tessfun"
created by as.function.tess
.
It represents a function which takes a constant value
on each tile of a tessellation.
The integral is calculated by multiplying the area of each tile
by the value of the function in that tile, and summing.
This avoids the need for discretisation and avoids concomitant
discretisation errors.