get_stcs: Supra-Threshold Cluster Size

Description Usage Arguments Value

View source: R/get_stcs.R

Description

From data in a matrix, finds the largest cluster size of grid cells above the specified threshold.

Usage

1
get_stcs(data, alpha_local, null_distribution, data_dim)

Arguments

data

Matrix containing data. Should be a statistical image, i.e., the test statistic of each grid cell

data_dim

dimesions of original data. Used for calculating df for t distributed test statistics, ignored if the test statistic is normal

thr

Threshold of significance.

Value

A number, stcs, specifying the size, in number of grid cells, of the largest exceedance cluster and a matrix containing the detected clusters.


vroni-g/change_point_detection documentation built on Dec. 23, 2021, 4:12 p.m.