print.Cksegs.1d.dp: Print Optimal Univariate Segmentation Results

Description Usage Arguments Details Value Author(s) Examples

View source: R/print.R

Description

Print optimal univariate segmentation results obtained from Cksegs.1d.dp.

Usage

1
2
## S3 method for class 'Cksegs.1d.dp'
print(x, ...)

Arguments

x

object returned by calling Cksegs.1d.dp.

...

arguments passed to print function.

Details

Function print.Cksegs.1d.dp prints the maximum ratio of between-cluster sum of squares to total sum of squares unless all input elements are zero. The ratio is an indicator of maximum achievable clustering quality given the number of clusters: 100% for a perfect clustering and 0% for no cluster patterns.

Value

An object of class "Cksegs.1d.dp" as defined in Cksegs.1d.dp.

Author(s)

Joe Song

Examples

1
2
3
4
5
6
7
8
# Example: clustering data generated from a Gaussian
#          mixture model of two components
x <- c(rnorm(15, mean=-1, sd=0.3),
       rnorm(15, mean=1, sd=0.3))

y <- x^3
res <- Cksegs.1d.dp(y, x=x)
print(res, lwd=2)

Ckmeans.1d.dp documentation built on July 22, 2020, 5:09 p.m.