本文簡要介紹 python 語言中 numpy.ma.common_fill_value
的用法。
用法:
ma.common_fill_value(a, b)
返回兩個掩碼數組的公共填充值(如果有)。
如果
a.fill_value == b.fill_value
,返回填充值,否則返回 None。- a, b: MaskedArray
要比較填充值的掩碼數組。
- fill_value: 標量或無
常見的填充值,或無。
參數:
返回:
例子:
>>> x = np.ma.array([0, 1.], fill_value=3) >>> y = np.ma.array([0, 1.], fill_value=3) >>> np.ma.common_fill_value(x, y) 3.0
相關用法
- Python numpy ma.compress_rowcols用法及代碼示例
- Python numpy ma.concatenate用法及代碼示例
- Python numpy ma.count用法及代碼示例
- Python numpy ma.count_masked用法及代碼示例
- Python numpy ma.conjugate用法及代碼示例
- Python numpy ma.column_stack用法及代碼示例
- Python numpy ma.copy用法及代碼示例
- Python numpy ma.cumsum用法及代碼示例
- Python numpy ma.choose用法及代碼示例
- Python numpy ma.clump_unmasked用法及代碼示例
- Python numpy ma.clip用法及代碼示例
- Python numpy ma.clump_masked用法及代碼示例
- Python numpy ma.indices用法及代碼示例
- Python numpy ma.zeros用法及代碼示例
- Python numpy ma.diff用法及代碼示例
- Python numpy ma.mask_rowcols用法及代碼示例
- Python numpy ma.where用法及代碼示例
- Python numpy ma.zeros_like用法及代碼示例
- Python numpy ma.notmasked_contiguous用法及代碼示例
- Python numpy ma.apply_along_axis用法及代碼示例
- Python numpy ma.vstack用法及代碼示例
- Python numpy ma.atleast_3d用法及代碼示例
- Python numpy ma.fix_invalid用法及代碼示例
- Python numpy ma.mean用法及代碼示例
- Python numpy ma.argmax用法及代碼示例
注:本文由純淨天空篩選整理自numpy.org大神的英文原創作品 numpy.ma.common_fill_value。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。