當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python SciPy special.owens_t用法及代碼示例

本文簡要介紹 python 語言中 scipy.special.owens_t 的用法。

用法:

scipy.special.owens_t(h, a, out=None) = <ufunc 'owens_t'>#

歐文的 T 函數。

函數 T(h, a) 給出事件的概率(X > h 和 0 < Y < a * X),其中 X 和 Y 是獨立的標準正態隨機變量。

參數

h: array_like

輸入值。

a: array_like

輸入值。

out ndarray,可選

函數結果的可選輸出數組

返回

t:標量或 ndarray

事件的概率(X > h 和 0 < Y < a * X),其中 X 和 Y 是獨立的標準正態隨機變量。

參考

[1]

M. Patefield 和 D. Tandy,“歐文 T 函數的快速準確計算”,統計軟件卷。 5,第 1-25 頁,2000 年。

例子

>>> from scipy import special
>>> a = 3.5
>>> h = 0.78
>>> special.owens_t(h, a)
0.10877216734852274

相關用法


注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.special.owens_t。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。