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])


Search within the blockseg package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.