bundles / scipy 1.18.0 / scipy / stats / _mgc / _mgc_stat
function
scipy.stats._mgc:_mgc_stat
source: /scipy/stats/_mgc.py:383
Signature
def _mgc_stat(distx, disty)Summary
Helper function that calculates the MGC stat. See above for use.
Parameters
distx, disty: ndarraydistxanddistyhave shapes(n, p)and(n, q)or(n, n)and(n, n)if distance matrices.
Returns
stat: floatThe sample MGC test statistic within
[-1, 1].stat_dict: dictContains additional useful additional returns containing the following keys:
stat_mgc_map
MGC-map of the statistics.
opt_scale
The estimated optimal scale as a
(x, y)pair.
Aliases
scipy.stats._mgc._mgc_stat