diff

inline fun <T> DataRow<T>.diff(firstRowResult: Double, expression: RowExpression<T, Double>): Double
inline fun <T> DataRow<T>.diff(firstRowResult: Int, expression: RowExpression<T, Int>): Int
inline fun <T> DataRow<T>.diff(firstRowResult: Long, expression: RowExpression<T, Long>): Long
inline fun <T> DataRow<T>.diff(firstRowResult: Float, expression: RowExpression<T, Float>): Float

Calculates the difference between the results of a row expression computed on the current and previous DataRow.

For more information: See Row Functions on the documentation website.

Return

firstRowValue for the first row; difference between expression computed for current and previous row for the following rows