Calculates the natural logarithm of the sum of field's value and 1. For
small values of x
, the result of
log1p(x)
is much closer to the true result
of ln(1 + x)
than the floating-point
evaluation of log(1.0+x)
.
Function Traits: FieldComputationFunction
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
as | string | optional | _log1p | The name of the output field. |
field [a] | string | required | The name of the input field. | |
The parameter name for field
can be omitted; the following forms are equivalent:
logscale
math:log1p("value")
and:
logscale
math:log1p(field="value")