caiman.train: Train CAIMAN model

Usage Arguments Examples

View source: R/caiman2-internal.R View source: R/caiman.train.R

Usage

1

Arguments

y
x

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (y, x) 
{
    classes = levels(y)
    df = x %>% as.data.frame()
    df$y = y
    list(xtx = .genXtX(df, classes), centroid = .genCentroide(df, 
        classes), classes = classes)
  }

pedroaraujo9/caiman2 documentation built on Dec. 2, 2018, 12:19 p.m.