|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< double > MayaFlux::Kinesis::Discrete::rectangular | ( | size_t | n, |
| size_t | support = std::numeric_limits< size_t >::max(), |
||
| size_t | offset = 0 |
||
| ) |
Rectangular (boxcar) taper coefficients.
Unity across a contiguous support region, zero elsewhere. The default arguments give unity across the whole length, which is the identity taper; a narrower support gates a region and suppresses the rest, which is the form used for frame extraction, impulse response truncation, and segment isolation ahead of a transform.
A support of 0 yields an all-zero vector. An offset at or beyond n leaves no unity region.
| n | Length in samples |
| support | Width of the unity region; defaults to the full length |
| offset | Index where the unity region begins |
Definition at line 52 of file Taper.cpp.
References offset.