Last data update: 2014.03.03
|
R: Create appropriate evaluation time points.
makeCommonTime | R Documentation |
Create appropriate evaluation time points.
Description
Create an appropriate grid of common time points based on
the available time points from the curves.
Usage
makeCommonTime(data, timeNr, plot = TRUE)
Arguments
data |
Dataset in general format Format1 (see funcit ).
|
timeNr |
Number of time points.
|
plot |
If TRUE , original and new time points are plotted.
|
Details
The evaluation time points of all curves together are clustered and new
time points are represented by the cluster centers.
Value
A vector of new time points.
Author(s)
Christina Yassouridis
Examples
##sample an irregular dataset
set.seed(2804)
ds <- sampleFuncy(obsNr=100, k=4, timeNrMin=5, timeNrMax=10, reg=FALSE)
makeCommonTime(Data(ds), 10)
Results
|