bundles / scipy latest / 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: ndarrayA binary matrix with 1's indicating the significant region.
stat_mgc_map: ndarrayAll local correlations within
[-1, 1].
Returns
stat: floatThe 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