spineSampling: Simulate new spines

Description Usage Arguments Value Examples

View source: R/simulateSpines.R

Description

Simulate virtual spines from the mixture of multivariate Gaussians

Usage

1
spineSampling(model, nSpines = 100, cluster = 0, seed = 1)

Arguments

model

is a Mclust object

nSpines

is an integer that denotes the number of spines that must be simulated

cluster

is an integer value that denotes the cluster from it should be sampled new spines, when it is 0 means that it should be sampled from prior

seed

is an integer value used to obtain reproducible results

Value

a dataframe with then nSpines simulated spines

Examples

1
newSpines <- spineSampling(model,nSpines=100,cluster=0,seed=1)

sergioluengosanchez/spineSimulation documentation built on Feb. 16, 2018, 3:13 a.m.