This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

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

function

scipy.stats._mgc:_two_sample_transform

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