linspace

fun linspace(num: Int = 50, endpoint: Boolean = true): List<Double>(source)

A simple implementation of linspace() found in python Returns evenly spaced values within a given interval start, stop

Return

a list of the values

Parameters

num

the number of points in the interval. Defaults to 50

endpoint

if true the end point (stop) is included in the interval. Defaults to true.