Learn R Programming

funcy (version 1.0.1)

makeCommonTime: 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.

Value

A vector of new time points.

Details

The evaluation time points of all curves together are clustered and new time points are represented by the cluster centers.

References

Christina Yassouridis and Dominik Ernst and Friedrich Leisch. Generalization, Combination and Extension of Functional Clustering Algorithms: The R Package funcy. Journal of Statistical Software. 85 (9). 1--25. 2018

Examples

Run this code
# NOT RUN {
##sample an irregular dataset
set.seed(2804)
ds <- sampleFuncy(obsNr=100, k=4, timeNrMin=5, timeNrMax=10, reg=FALSE)
makeCommonTime(Data(ds), 10)
# }

Run the code above in your browser using DataLab