scipy.special.nctdtrinc#
- scipy.special.nctdtrinc(df, p, t, out=None) = <ufunc 'nctdtrinc'>#
計算非中心 t 分佈的非中心性參數。
詳情請參閱
nctdtr
。- 參數:
- dfarray_like
分佈的自由度。應在範圍 (0, inf) 內。
- parray_like
CDF 值,在範圍 (0, 1] 內。
- tarray_like
分位數,即積分上限。
- outndarray, optional
函數結果的可選輸出陣列
- 返回:
- nc純量或 ndarray
非中心性參數
範例
>>> from scipy.special import nctdtr, nctdtrinc
計算幾個 nc 值的 CDF
>>> nc = [0.5, 1.5, 2.5] >>> p = nctdtr(3, nc, 1.5) >>> p array([0.77569497, 0.45524533, 0.1668691 ])
計算反函數。我們如預期地恢復了 nc 的值
>>> nctdtrinc(3, p, 1.5) array([0.5, 1.5, 2.5])