Skip to content

compute linspace

kgryte edited this page May 12, 2015 · 1 revision

Generates a linearly spaced numeric array. If a length is not provided, the default output array length is 100.

var arr = compute.linspace( 0, 100, 6 );
// returns [ 0, 20, 40, 60, 80, 100 ]
Clone this wiki locally