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

View source: R/SparseFunClust_data_generation.R

generate.data.FV17R Documentation

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)

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)

Value

a list including:

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

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

Examples

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

SparseFunClust documentation built on March 31, 2023, 11:32 p.m.