Last data update: 2014.03.03

R: Generic function
getCostR Documentation

Generic function

Description

Generic function

Usage

getCost(object)

Arguments

object

An object of class Segmentor

Details

Returns the slot Cost of an object of class Segmentor

Value

The matrix of Cost of the segmentation in i segments up to point j

Author(s)

Alice Cleynen

References

PDPA: Rigaill, G. Pruned dynamic programming for optimal multiple change-point detection: Submitted http://arxiv.org/abs/1004.0887

PDPA: Cleynen, A. and Koskas, M. and Lebarbier, E. and Rigaill, G. and Robin, S. Segmentor3IsBack: an R package for the fast and exact segmentation of Seq-data: Submitted http://arxiv.org/abs/1204.5564

See Also

getLikelihood; getBreaks

Examples

x=new("Segmentor") # new Segmentor object
getCost(x) # retrieves the Cost slot from x

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Segmentor3IsBack)
Segmentor3IsBack v1.8 Loaded 

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Segmentor3IsBack/getCost.Rd_%03d_medium.png", width=480, height=480)
> ### Name: getCost
> ### Title: Generic function
> ### Aliases: getCost
> ### Keywords: methods Cost changepoints
> 
> ### ** Examples
> 
> x=new("Segmentor") # new Segmentor object
> getCost(x) # retrieves the Cost slot from x
<0 x 0 matrix>
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>