dcaiman.pred: Predict D-CAIMAN model

Usage Arguments Examples

View source: R/dcaiman.pred.R View source: R/caiman2-internal.R

Usage

1
dcaiman.pred(CT, x, a = NULL)

Arguments

CT
x
a

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
##---- 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 (CT, x, a = NULL) 
{
    classes = CT[["classes"]]
    xtx = CT[["xtx"]]
    xtk = CT[["xtk"]]
    mx = CT[["cx"]]
    mk = CT[["ck"]]
    if (is.null(a)) {
        a = CT[["a"]]
    }
    valx = .genhiddenSpace(classes, x = x, xxt = xtx, m = mx)
    valy = .genhiddenSpace(classes, x = valx, xxt = xtk, m = mk)
    k = .genhiddenSpace(classes, x, xtx, m = mx)
    kk = .genhiddenSpace(classes, k, xtk, m = mk)
    kf = a * k + (1 - a) * kk
    .genmin(classes, kf)
  }

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