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 #4 first integers:
Example 2: vector of #4 time points, with a sampling frequency of #118 Hz:
let t = linspace(0, (n-1)/fs, n)