This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _mgc / _smooth_mgc_map

function

scipy.stats._mgc:_smooth_mgc_map

source: build-install/usr/lib/python3.14/site-packages/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