本文簡要介紹 python 語言中 scipy.stats.mstats.tmax
的用法。
用法:
scipy.stats.mstats.tmax(a, upperlimit=None, axis=0, inclusive=True)#
計算修剪後的最大值
此函數沿給定軸計算數組的最大值,同時忽略大於指定上限的值。
- a: array_like
值數組
- upperlimit: 無或浮點數,可選
輸入數組中大於給定限製的值將被忽略。當上限為無時,則使用所有值。默認值為無。
- axis: int 或無,可選
操作的軸。默認值為 0。如果沒有,則計算整個數組 a。
- inclusive: {真,假},可選
此標誌確定是否包含與上限完全相等的值。默認值是true。
- tmax: 浮點數,int 或 ndarray
參數 ::
返回 ::
注意:
有關
tmax
的更多詳細信息,請參閱scipy.stats.tmax
。例子:
>>> import numpy as np >>> from scipy.stats import mstats >>> a = np.array([[6, 8, 3, 0], ... [3, 9, 1, 2], ... [8, 7, 8, 2], ... [5, 6, 0, 2], ... [4, 5, 5, 2]]) ... ... >>> mstats.tmax(a, 4) masked_array(data=[4, --, 3, 2], mask=[False, True, False, False], fill_value=999999)
相關用法
- Python SciPy mstats.tmin用法及代碼示例
- Python SciPy mstats.tmean用法及代碼示例
- Python SciPy mstats.trim用法及代碼示例
- Python SciPy mstats.trima用法及代碼示例
- Python SciPy mstats.winsorize用法及代碼示例
- Python SciPy mstats.argstoarray用法及代碼示例
- Python SciPy mstats.kruskalwallis用法及代碼示例
- Python SciPy mstats.sem用法及代碼示例
- Python SciPy mstats.zscore用法及代碼示例
- Python SciPy mstats.zmap用法及代碼示例
- Python SciPy mstats.mode用法及代碼示例
- Python SciPy mstats.hmean用法及代碼示例
- Python SciPy mstats.variation用法及代碼示例
- Python SciPy mstats.compare_medians_ms用法及代碼示例
- Python SciPy mstats.gmean用法及代碼示例
- Python SciPy mstats.pearsonr用法及代碼示例
- Python SciPy mstats.kruskal用法及代碼示例
- Python SciPy mstats.mquantiles用法及代碼示例
- Python SciPy mstats.count_tied_groups用法及代碼示例
- Python SciPy mstats.chisquare用法及代碼示例
- Python SciPy mstats.describe用法及代碼示例
- Python SciPy mstats.sen_seasonal_slopes用法及代碼示例
- Python SciPy mstats.find_repeats用法及代碼示例
- Python SciPy matlab.loadmat用法及代碼示例
- Python SciPy misc.ascent用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.stats.mstats.tmax。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。