minima {roahd} | R Documentation |
Minima of a univariate functional dataset
Description
This function computes computes the minimum value of each element of a univariate functional dataset, optionally returning also the value of the grid where they are fulfilled.
Usage
minima(fData, ..., which = FALSE)
Arguments
fData |
the functional dataset containing elements whose minima have to
be computed, in form of |
... |
additional parameters. |
which |
logical flag specifying whether the grid values where minima are fulfilled have to be returned too. |
Value
If which = FALSE
, the function returns a vector containing the
minima for each element of the functional dataset; if which = TRUE
,
the function returns a data.frame
whose field value
contains
the values of minima, and grid
contains the grid points where minima
are reached.
See Also
Examples
P = 1e3
grid = seq( 0, 1, length.out = P )
Data = matrix( c( 1 * grid,
2 * grid,
3 * ( 0.5 - abs( grid - 0.5 ) ) ),
nrow = 3, ncol = P, byrow = TRUE )
fD = fData( grid, Data )
minima( fD, which = TRUE )
[Package roahd version 1.4.3 Index]