predict: Predict method for a 'blockSeg' object

Description Usage Arguments See Also Examples

Description

Produce a prediction for a vector of lambda parameter and an array of class.

Usage

1
2
## S4 method for signature 'blockSeg'
predict(object, Y, lambda = NULL)

Arguments

object

an object of class blockSeg.

Y

matrix of observations.

lambda

a numeric vector giving the list of lambda for which to predict. By default, NULL. If NULL, it is set to the lambdalist slot of object. If this slot is empty, lambda is set to the fusion times detected in the blockSeg function.

See Also

blockSeg.

Examples

1
2
3
4
5
6
7
require(blockseg)
n <- 100
K <- 5
mu <- suppressWarnings(matrix(rep(c(1,0),ceiling(K**2/2)), K,K))
Y <- rblockdata(n,mu,sigma=.5)$Y
res <- blockSeg(Y, 100)
predict(res, Y, lambda=slot(res, "Lambda")[1:3])

jchiquet/blockseg documentation built on Aug. 30, 2019, 9:18 a.m.