ee.Number.erfInv

  • The Number.erfInv() method computes the inverse error function of a given input number.

  • It takes a single argument, which is the number for which to compute the inverse error function.

  • The method returns a Number representing the result of the inverse error function computation.

  • Examples demonstrate calculating the inverse error function for values like -1, -0.001, 0, 0.001, and 1, yielding results such as -Infinity, -0.000886227, 0, 0.000886227, and Infinity respectively.

Computes the inverse error function of the input.

UsageReturns
Number.erfInv()Number
ArgumentTypeDetails
this: inputNumberThe input value.

Examples

Code Editor (JavaScript)

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

Colab (Python)

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