Description: Construct a vector containing Blackman window weights.
Syntax:
Vector<float> blackman
( |
length_type LEN
); |
Requirements:
The parameter LEN must be greater than one.
Result:
Each element n, from 0 through LEN-1,
of the result vector is
0.42 - 0.50 * cos(temp1 * n) + 0.08 * cos(temp2 * n)
where the float values temp1 is
2 * VSIP_IMPL_PI / (len - 1) and
temp2 is 2 * temp1.
Example:
Vector<float> Z; Z = blackman(200);
See Also:
chebyhanningkaiser
Description: Construct a vector containing Chebyshev window weights.
Syntax:
Vector<float> cheby
( |
length_type LEN
scalar_f ripple
); |
Requirements:
The parameter LEN must be greater than one.
Result:
The function returns a vector of length LEN initialized
with Dolph-Chebyshev window weights using the specified ripple.
Example:
Vector<float> Z; Z = cheby(200,0.5);
See Also:
blackmanhanningkaiser
Syntax:
Vector<T> freqswap( Vector<T> A );
Matrix<T> freqswap( Matrix<T> A );Description: Swaps halves of a vector, or quadrants of a matrix, to remap zero frequencies from the origin to the middle.
Result: freqswap returns a new vector (matrix) with
A's halves (quadrants) swapped.
Example:
Vector<int> vec(4); vec(0) = 10; vec(1) = 11; vec(2) = 12; vec(3) = 13; std::cout << freqswap(vec) << std::endl; // prints: 12 13 10 11
Description: Construct a vector containing Hanning window weights.
Syntax:
Vector<float> hanning
( |
length_type LEN
); |
Requirements:
The parameter LEN must be greater than one.
Result:
Each element n, from 0 through LEN-1,
of the result vector is
0.5 * (1 - (cos(temp * (n + 1))))
where the float value temp is
2 * VSIP_IMPL_PI / (len + 1).
Example:
Vector<float> Z; Z = hanning(200);
See Also:
blackmanchebykaiser
Description: Construct a vector containing Kaiser window weights.
Syntax:
Vector<float> kaiser
( |
length_type LEN
scalar_f beta
); |
Requirements:
The parameter LEN must be greater than one.
Result:
The function returns a vector initialized with Kaiser window weights
with transition width parameter beta and having
length LEN.
Example:
Vector<float> Z; Z = kaiser(200,0.5);
See Also:
blackmanchebyhanning