{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _mgc / _smooth_mgc_map

function

scipy.stats._mgc:_smooth_mgc_map

source: /scipy/stats/_mgc.py :477

Signature

def   _smooth_mgc_map ( sig_connect stat_mgc_map )

Summary

Finds the smoothed maximal within the significant region R.

Extended Summary

If area of R is too small it returns the last local correlation. Otherwise, returns the maximum within significant_connected_region.

Parameters

sig_connect : ndarray

A binary matrix with 1's indicating the significant region.

stat_mgc_map : ndarray

All local correlations within [-1, 1].

Returns

stat : float

The sample MGC statistic within [-1, 1].

: opt_scale: (float, float)

The estimated optimal scale as an (x, y) pair.

Aliases

  • scipy.stats._mgc._smooth_mgc_map