{ } Raw JSON

bundles / scipy latest / scipy / stats / _mgc / _two_sample_transform

function

scipy.stats._mgc:_two_sample_transform

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

Signature

def   _two_sample_transform ( u v )

Summary

Helper function that concatenates x and y for two sample MGC stat.

Extended Summary

See above for use.

Parameters

u, v : ndarray

u and v have shapes (n, p) and (m, p).

Returns

x : ndarray

Concatenate u and v along the axis = 0. x thus has shape (2n, p).

y : ndarray

Label matrix for x where 0 refers to samples that comes from u and 1 refers to samples that come from v. y thus has shape (2n, 1).

Aliases

  • scipy.stats._mgc._two_sample_transform