{ } Raw JSON

bundles / scipy latest / 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 : ndarray

distx and disty have shapes (n, p) and (n, q) or (n, n) and (n, n) if distance matrices.

Returns

stat : float

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

stat_dict : dict

Contains additional useful additional returns containing the following keys:

  • stat_mgc_map

    stat_mgc_map

  • opt_scale

    opt_scale

Aliases

  • scipy.stats._mgc._mgc_stat