Learn R Programming

onlineCPD (version 1.0)

print.oCPD: Summarizing oCPD results

Description

Summary, str and print methods for class oCPD

Usage

"print"(x, ...) "summary"(object, ...) "str"(object, ...)

Arguments

x
the result of a call to onlineCPD or offlineCPD
object
the result of a call to onlineCPD or offlineCPD
...
(optional) additional arguements, ignored.

Details

The functions print and return invisibly the detected changepoints.

See Also

onlineCPD and plot.oCPD

Examples

Run this code
set.seed(6)
x <- c(rnorm(50,mean=0.3,sd=0.15),rnorm(40,mean=0.7,sd=0.1),rnorm(60,mean=0.5,sd=0.15))
res <- offlineCPD(x)
summary(res)
print(res)
str(res)
res

Run the code above in your browser using DataLab