Earth Engine 推出了
非商业配额层级,以保护共享计算资源并确保为所有人提供可靠的性能。非商业项目默认使用 Community
层级,但您可以随时更改项目的层级。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
ee.Number.erf
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
计算输入的误差函数。
示例
代码编辑器 (JavaScript)
print('Error function of -10', ee.Number(-10).erf()); // -1
print('Error function of -0.001', ee.Number(-0.001).erf()); // -0.001128378
print('Error function of 0', ee.Number(0).erf()); // 0
print('Error function of 0.001', ee.Number(0.001).erf()); // 0.001128378
print('Error function of 10', ee.Number(10).erf()); // 1
Python 设置
如需了解 Python API 和如何使用 geemap 进行交互式开发,请参阅
Python 环境页面。
import ee
import geemap.core as geemap
Colab (Python)
display('Error function of -10:', ee.Number(-10).erf()) # -1
# -0.001128378
display('Error function of -0.001:', ee.Number(-0.001).erf())
display('Error function of 0:', ee.Number(0).erf()) # 0
# 0.001128378
display('Error function of 0.001:', ee.Number(0.001).erf())
display('Error function of 10:', ee.Number(10).erf()) # 1
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-10-30。
[null,null,["最后更新时间 (UTC):2025-10-30。"],[],["The `erf()` method computes the error function of a numerical input. It takes a number as input and returns a number representing the error function value. The examples demonstrate that applying `erf()` to -10 and 10 returns -1 and 1 respectively, with 0 returning 0. Using -0.001 and 0.001 return -0.001128378 and 0.001128378 respectively. The method can be used in JavaScript and Python.\n"]]