OPAL Numeric Functions¶
Numeric functions act on and/or produce numeric values, for your mathematical calculation needs.
| Function | Description | 
|---|---|
| Returns the absolute value of ‘val’. | |
| Computes the arc cosine of the input. | |
| Computes the arc cosine of the input. | |
| Computes the arc sine of the input. | |
| Computes the arc sine of the input. | |
| Computes the arc tangent of the input. | |
| Computes the arc tangent of the input. | |
| Calculate the arithmetic average of the input expression across the group, or of the scalar arguments if more than one. | |
| Returns ‘val’ rounded up to the given ‘precision’. | |
| Computes the cosine of the input and returns a float64. | |
| Computes the cosine of the input and returns a float64. | |
| Count the number of non-null items in the group. | |
| Converts from radians to degrees. | |
| Calculates the value difference of the argument in each time bin for each group. | |
| Calculates the amount of difference in a column in each time bin for each group. | |
| Returns the dense rank within an ordered group of values. | |
| Calculate the average per-second derivative of the argument across the group. | |
| Returns Euler’s number e raised to the given number. | |
| Returns a null value of type float64. | |
| Returns ‘val’ rounded down to the given ‘precision’. | |
| Computes the great circle approximate distance between two latitude/longitude coordinates, using the haversine formula. | |
| Returns a null value of type int64. | |
| Returns the integer quotient of the dividend divided by the divisor and truncates the remainder. | |
| Returns natural logarithm of a numeric expression. | |
| Returns logarithm of a numeric expression (second argument) with the provided base (first argument). | |
| Return the fast approximate median value of one column. | |
| Return the exact median value of one column. | |
| Returns the remainder when dividend is divided by the divisor. | |
| Returns an approximated value for the specified percentile of the input expression across the group. | |
| Assuming a continuous distribution, return the value for the specified percentile of the input expression across the group. | |
| Assuming a discrete distribution, return the value for the specified percentile of the input expression across the group. | |
| Returns the value of pi as a float64. | |
| Returns a number ‘base’ raised to the specified power ‘exponent’. | |
| Calculates an approximate percentile value of the distribution in a histogram metric generated by a Prometheus data source. | |
| Converts from degrees to radians. | |
| Returns the rank within an ordered group of values. | |
| Calculate the average per-second rate of the argument across the group. | |
| Returns ‘val’ rounded to the given ‘precision’. | |
| Return the window index of the row within its groupby, when ordered by the orderby. | |
| Computes the sine of the input and returns a float64. | |
| Computes the sine of the input and returns a float64. | |
| Returns the square root for a given input and null if input is negative. | |
| Calculate the standard deviation across the group. | |
| Calculate the sum of the argument across the group, or of the scalar arguments if more than one. | |
| Computes the tangent of the input and returns a float64. | |
| Computes the tangent of the input and returns a float64. | |
| Generates a uniformly-distributed pseudo-random number in the inclusive range [ | |
| Construct equi-width histogram by dividing up the range between  | |
| Returns a Zipf-distributed integer, for N elements and characteristic exponent s. |