Aggregates the functional data into the regular grid of discretization points, i.e. computes the functional sample mean and the sample size.

npf.binning(x)

Arguments

x

funcional data (npf.data-class object).

Value

Returns an S3 object of class npf.bin extending npsp::bin.data (bin data + grid par.).

Examples

fd <- npf.data(ozone, dimnames = "day")
bin <- npf.binning(fd)
plot(fd, col = "lightgray", legend = FALSE)
with(bin, lines(data$x, biny))