Learn R Programming

gSeg (version 1.1)

gseg2_data: Changed-Interval Graph Scan from Data or Dissimilarities

Description

Constructs a k-MST and applies the changed-interval scan.

Usage

gseg2_data(x = NULL, dissimilarity = NULL, k = NULL,
  statistics = "m", ...)

Value

The result from gseg2, with the constructed graph and realized k added.

Arguments

x

Optional data matrix with observations in rows.

dissimilarity

Optional square dissimilarity matrix or a dist object. Supply exactly one of x and dissimilarity.

k

Number of complete MST layers. The default is floor(sqrt(N)); the largest allowed value is floor(N/2).

statistics

Statistics passed to gseg2. The default reports MET only; use "g" to request GET or "all" for all historical statistics.

...

Further arguments passed to gseg2.

See Also

gseg2, gseg1_data, gseg_kmst

Examples

Run this code
set.seed(1)
x <- matrix(rnorm(60), nrow = 20)
ans <- gseg2_data(x = x, pval.appr = FALSE)
names(ans$scanZ)

Run the code above in your browser using DataLab