gseg2_data: Changed-Interval Graph Scan from Data or Dissimilarities

View source: R/canonical-interface.R

gseg2_dataR Documentation

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", ...)

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.

Value

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

See Also

gseg2, gseg1_data, gseg_kmst

Examples

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

gSeg documentation built on Sept. 9, 2026, 5:07 p.m.