makePoints

fun makePoints(theInterval: Interval, numPoints: Int): DoubleArray

Makes a set of points for evaluation over the interval. If n = 0, then 2 evaluations occur at both end points. If n = 1, then 3 evaluations occur at mid-point and both end points. The grid division is determined by the interval width divided by (n+1).

Parameters

theInterval

the interval for evaluations, must not be null

numPoints

the number of points within the interval to evaluate, must be greater than zero


fun makePoints(lowerLimit: Double, delta: Double, numPoints: Int): DoubleArray

A set of points starting a lower limit and incrementing by delta

Return

the points, including the lower limit at index 0

Parameters

lowerLimit

the lower limit

delta

the delta increment

numPoints

the number of points after the lower limit, resulting in an upper limit