Learn R Programming

SparseFunClust (version 1.0.0)

generate.data.FV17: Data generation: no-misalignment case

Description

this function generates a set of simulated functional data in 2 clusters that reproduce the examples in Simulations 2A and 2B in Floriello & Vitelli (2017).

Usage

generate.data.FV17(n, x, paramC = 0.5, plots = FALSE)

Value

a list including:

  • $data matrix (n x length(x)) with the simulated data

  • $true.partition vector (length = n) with the true cluster assignments

Arguments

n

number of curves

x

curves' domain

paramC

proportion of cluster overlap (default 0.5, as in Simulation 2A)

plots

boolean; should plots be drawn (FALSE default)

Examples

Run this code
generate.data.FV17(5, seq(0, 1, len = 3))

Run the code above in your browser using DataLab