functionXY

fun Trace.functionXY(xRange: IntRange, function: (Int) -> Number)

Fill trace x and y with values based on a given integer xRange and a numeric function. Old values are erased.


fun Trace.functionXY(xs: Iterable<Number>, function: (Double) -> Number)

Fill trace x and y with values based on given xs and a function for y values. Old values are erased.


fun Trace.functionXY(xRange: ClosedFloatingPointRange<Double>, step: Double = 1.0, function: (Double) -> Number)

Fill values in xRange with given step using given function. Old values are erased.