rangeCentered

fun rangeCentered(begin: Double, end: Double, samples: Int): List<Double>

Partitions \(a, b\) into \(n\) equal intervals and returns the center values.

Return

List of center values of the intervals.

Parameters

begin

\(a\) The start of the range.

end

\(b\) The end of the range.

samples

\(n\) The number of samples (must be at least 1).

Throws