本文簡要介紹 python 語言中 scipy.linalg.helmert
的用法。
用法:
scipy.linalg.helmert(n, full=False)#
創建一個 n 階 Helmert 矩陣。
這在統計、成分或單純分析以及 Aitchison 幾何中都有應用。
- n: int
要創建的數組的大小。
- full: 布爾型,可選
如果為 True,則將返回 (n, n) ndarray。否則將返回不包含第一行的子矩陣。默認值:假。
- M: ndarray
赫爾默特矩陣。形狀是 (n, n) 或 (n-1, n) 取決於完整的參數。
參數 ::
返回 ::
例子:
>>> from scipy.linalg import helmert >>> helmert(5, full=True) array([[ 0.4472136 , 0.4472136 , 0.4472136 , 0.4472136 , 0.4472136 ], [ 0.70710678, -0.70710678, 0. , 0. , 0. ], [ 0.40824829, 0.40824829, -0.81649658, 0. , 0. ], [ 0.28867513, 0.28867513, 0.28867513, -0.8660254 , 0. ], [ 0.2236068 , 0.2236068 , 0.2236068 , 0.2236068 , -0.89442719]])
相關用法
- Python SciPy linalg.hessenberg用法及代碼示例
- Python SciPy linalg.hilbert用法及代碼示例
- Python SciPy linalg.hankel用法及代碼示例
- Python SciPy linalg.hadamard用法及代碼示例
- Python SciPy linalg.eigvalsh_tridiagonal用法及代碼示例
- Python SciPy linalg.cdf2rdf用法及代碼示例
- Python SciPy linalg.LaplacianNd用法及代碼示例
- Python SciPy linalg.solve_circulant用法及代碼示例
- Python SciPy linalg.polar用法及代碼示例
- Python SciPy linalg.clarkson_woodruff_transform用法及代碼示例
- Python SciPy linalg.rsf2csf用法及代碼示例
- Python SciPy linalg.tril用法及代碼示例
- Python SciPy linalg.triu用法及代碼示例
- Python SciPy linalg.svd用法及代碼示例
- Python SciPy linalg.ishermitian用法及代碼示例
- Python SciPy linalg.invhilbert用法及代碼示例
- Python SciPy linalg.factorized用法及代碼示例
- Python SciPy linalg.lu_factor用法及代碼示例
- Python SciPy linalg.SuperLU用法及代碼示例
- Python SciPy linalg.lsqr用法及代碼示例
- Python SciPy linalg.cho_factor用法及代碼示例
- Python SciPy linalg.fractional_matrix_power用法及代碼示例
- Python SciPy linalg.eig_banded用法及代碼示例
- Python SciPy linalg.tanhm用法及代碼示例
- Python SciPy linalg.orthogonal_procrustes用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.linalg.helmert。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。