ee.Number.erfInv
Computes the inverse error function of the input.
Usage | Returns |
---|
Number.erfInv() | Number |
Argument | Type | Details |
---|
this: input | Number | The input value. |
Examples
print('Inverse error function of -1',
ee.Number(-1).erfInv()); // -Infinity
print('Inverse error function of -0.001',
ee.Number(-0.001).erfInv()); // -0.000886227
print('Inverse error function of 0',
ee.Number(0).erfInv()); // 0
print('Inverse error function of 0.001',
ee.Number(0.001).erfInv()); // 0.000886227
print('Inverse error function of 1',
ee.Number(1).erfInv()); // Infinity
Python setup
See the
Python Environment page for information on the Python API and using
geemap
for interactive development.
import ee
import geemap.core as geemap
print('Inverse error function of -1:',
ee.Number(-1).erfInv().getInfo()) # -Infinity
print('Inverse error function of -0.001:',
ee.Number(-0.001).erfInv().getInfo()) # -0.000886227
print('Inverse error function of 0:',
ee.Number(0).erfInv().getInfo()) # 0
print('Inverse error function of 0.001:',
ee.Number(0.001).erfInv().getInfo()) # 0.000886227
print('Inverse error function of 1:',
ee.Number(1).erfInv().getInfo()) # Infinity
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Computes the inverse error function of a given input number."],["Accepts a single numeric input using `Number.erfInv()`."],["Returns the inverse error function result as a number, which can range from negative infinity to positive infinity depending on the input."],["Provides usage examples in JavaScript, Python, and Colab environments."]]],["The `erfInv()` function calculates the inverse error function of a numerical input. It takes a single numerical input and returns a numerical output. The function is accessible through `Number.erfInv()` in JavaScript and `ee.Number().erfInv()` in Python. Inputs of -1 and 1 return -Infinity and Infinity respectively. Inputs of -0.001, 0, 0.001 return -0.000886227, 0, 0.000886227, respectively. The implementation for both languages, includes examples of these calculations.\n"]]