This function computes the maximum value of each element of a univariate functional dataset, optionally returning also the value of the grid where they are fulfilled.
maxima(fData, ..., which = FALSE)
the functional dataset containing elements whose maxima have to
be computed, in form of fData
object.
additional parameters.
logical flag specifying whether the grid values where maxima are fulfilled have to be returned too.
If which = FALSE
, the function returns a vector containing the
maxima for each element of the functional dataset; if which = TRUE
,
the function returns a data.frame
whose field value
contains
the values of maxima, and grid
contains the grid points where maxima
are reached.