Smoothing: An auxiliary function that finds the smoothed maximal within...

Description Usage Arguments Value Author(s)

View source: R/MGCSampleStat.R

Description

An auxiliary function that finds the smoothed maximal within the significant region R: If area of R is too small, return the last local corr otherwise take the maximum within R.

Usage

1
Smoothing(localCorr, m, n, R)

Arguments

localCorr

is all local correlations

m

is the number of rows of localCorr

n

is the number of columns of localCorr

R

is a binary matrix of size m by n indicating the significant region.

Value

A list contains the following:

stat

is the sample MGC statistic within [-1,1]

optimalScale

the estimated optimal scale as a list.

Author(s)

C. Shen


neurodata/r-mgc documentation built on March 12, 2021, 9:45 a.m.