powered by
Constructs a k-MST and applies the changed-interval scan.
gseg2_data(x = NULL, dissimilarity = NULL, k = NULL, statistics = "m", ...)
The result from gseg2, with the constructed graph and realized k added.
gseg2
k
Optional data matrix with observations in rows.
Optional square dissimilarity matrix or a dist object. Supply exactly one of x and dissimilarity.
dist
x
dissimilarity
Number of complete MST layers. The default is floor(sqrt(N)); the largest allowed value is floor(N/2).
floor(sqrt(N))
floor(N/2)
Statistics passed to gseg2. The default reports MET only; use "g" to request GET or "all" for all historical statistics.
"g"
"all"
Further arguments passed to gseg2.
gseg2, gseg1_data, gseg_kmst
gseg1_data
gseg_kmst
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