{ } Raw JSON

bundles / scipy 1.18.0 / scipy / stats / _sensitivity_analysis / sample_AB

function

scipy.stats._sensitivity_analysis:sample_AB

source: /scipy/stats/_sensitivity_analysis.py:92

Signature

def sample_AB(A: np.ndarray, B: np.ndarray) → np.ndarray

Summary

AB matrix.

Extended Summary

AB: rows of B into A. Shape (d, d, n).

  • Copy A into d "pages"

  • In the first page, replace 1st rows of A with 1st row of B.

... - In the dth page, replace dth row of A with dth row of B. - return the stack of pages

Aliases

  • scipy.stats._sensitivity_analysis.sample_AB