linspace
Equidistant point interval.
Namespace: dsp
Prototype
static Vecf linspace(float a, float b, unsigned int n)
Parameters
a | Initial point (first value) |
b | Final point (last value) |
n | Number of points |
Returns
Interval defined as:
Description
Compute \(n\) equidistant points between \(a\) and \(b\).
Example 1: vector with the #5 first integers:
Example 2: vector of #5 time points, with a sampling frequency of #107 Hz:
let t = linspace(0, (n-1)/fs, n)