Skip to content

Window functions

expression_gaussian<T> function

expression_gaussian(
    size_t size, T alpha = 2.5,
    window_symmetry symmetry = window_symmetry::symmetric)
    : expression_window_with_metrics<
          T, window_metrics::metrics_m1_1_trunc>(
          size, alpha, symmetry)

alpha = std / 2N

Source code
expression_gaussian(size_t size, T alpha = 2.5, window_symmetry symmetry = window_symmetry::symmetric)
    : expression_window_with_metrics<T, window_metrics::metrics_m1_1_trunc>(size, alpha, symmetry)
{
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L361

window_bartlett function

template <typename T = fbase>
expression_bartlett<T>
window_bartlett(size_t size, ctype_t<T> = ctype_t<T>())

Returns template expression that generates Bartlett window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_bartlett<T> window_bartlett(size_t size, ctype_t<T> = ctype_t<T>())
{
    return expression_bartlett<T>(size);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L470

window_bartlett_hann function

template <typename T = fbase>
expression_bartlett_hann<T>
window_bartlett_hann(size_t size, ctype_t<T> = ctype_t<T>())

Returns template expression that generates Bartlett-Hann window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_bartlett_hann<T> window_bartlett_hann(size_t size, ctype_t<T> = ctype_t<T>())
{
    return expression_bartlett_hann<T>(size);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L506

window_blackman function

template <typename T = fbase>
expression_blackman<T> window_blackman(
    size_t size, identity<T> alpha = 0.16,
    window_symmetry symmetry = window_symmetry::symmetric,
    ctype_t<T> = ctype_t<T>())

Returns template expression that generates Blackman window of length size where α = alpha

Source code
template <typename T = fbase>
KFR_FUNCTION expression_blackman<T> window_blackman(size_t size, identity<T> alpha = 0.16,
                                                    window_symmetry symmetry = window_symmetry::symmetric,
                                                    ctype_t<T>               = ctype_t<T>())
{
    return expression_blackman<T>(size, alpha, symmetry);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L536

window_blackman_harris function

template <typename T = fbase>
expression_blackman_harris<T> window_blackman_harris(
    size_t size,
    window_symmetry symmetry = window_symmetry::symmetric,
    ctype_t<T> = ctype_t<T>())

Returns template expression that generates Blackman-Harris window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_blackman_harris<T> window_blackman_harris(
    size_t size, window_symmetry symmetry = window_symmetry::symmetric, ctype_t<T> = ctype_t<T>())
{
    return expression_blackman_harris<T>(size, T(), symmetry);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L547

window_bohman function

template <typename T = fbase>
expression_bohman<T>
window_bohman(size_t size, ctype_t<T> = ctype_t<T>())

Returns template expression that generates Bohman window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_bohman<T> window_bohman(size_t size, ctype_t<T> = ctype_t<T>())
{
    return expression_bohman<T>(size);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L526

window_cosine function

template <typename T = fbase>
expression_cosine<T>
window_cosine(size_t size, ctype_t<T> = ctype_t<T>())

Returns template expression that generates Cosine window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_cosine<T> window_cosine(size_t size, ctype_t<T> = ctype_t<T>())
{
    return expression_cosine<T>(size);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L479

window_cosine_np function

template <typename T = fbase>
expression_cosine_np<T>
window_cosine_np(size_t size, ctype_t<T> = ctype_t<T>())

Returns template expression that generates Cosine window (numpy compatible) of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_cosine_np<T> window_cosine_np(size_t size, ctype_t<T> = ctype_t<T>())
{
    return expression_cosine_np<T>(size);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L488

window_flattop function

template <typename T = fbase>
expression_flattop<T>
window_flattop(size_t size, ctype_t<T> = ctype_t<T>())

Returns template expression that generates Flat top window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_flattop<T> window_flattop(size_t size, ctype_t<T> = ctype_t<T>())
{
    return expression_flattop<T>(size);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L568

window_gaussian function

template <typename T = fbase>
expression_gaussian<T>
window_gaussian(size_t size, identity<T> alpha = 2.5,
                ctype_t<T> = ctype_t<T>())

Returns template expression that generates Gaussian window of length size where α = alpha

Source code
template <typename T = fbase>
KFR_FUNCTION expression_gaussian<T> window_gaussian(size_t size, identity<T> alpha = 2.5,
                                                    ctype_t<T> = ctype_t<T>())
{
    return expression_gaussian<T>(size, alpha);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L578

window_hamming function

template <typename T = fbase>
expression_hamming<T>
window_hamming(size_t size, identity<T> alpha = 0.54,
               ctype_t<T> = ctype_t<T>())

Returns template expression that generates Hamming window of length size where α = alpha

Source code
template <typename T = fbase>
KFR_FUNCTION expression_hamming<T> window_hamming(size_t size, identity<T> alpha = 0.54,
                                                  ctype_t<T> = ctype_t<T>())
{
    return expression_hamming<T>(size, alpha);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L516

window_hann function

template <typename T = fbase>
expression_hann<T> window_hann(size_t size,
                               ctype_t<T> = ctype_t<T>())

Returns template expression that generates Hann window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_hann<T> window_hann(size_t size, ctype_t<T> = ctype_t<T>())
{
    return expression_hann<T>(size);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L497

window_kaiser function

template <typename T = fbase>
expression_kaiser<T>
window_kaiser(size_t size, identity<T> beta = T(0.5),
              ctype_t<T> = ctype_t<T>())

Returns template expression that generates Kaiser window of length size where β = beta

Source code
template <typename T = fbase>
KFR_FUNCTION expression_kaiser<T> window_kaiser(size_t size, identity<T> beta = T(0.5),
                                                ctype_t<T> = ctype_t<T>())
{
    return expression_kaiser<T>(size, beta);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L558

window_lanczos function

template <typename T = fbase>
expression_lanczos<T>
window_lanczos(size_t size, ctype_t<T> = ctype_t<T>())

Returns template expression that generates Lanczos window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_lanczos<T> window_lanczos(size_t size, ctype_t<T> = ctype_t<T>())
{
    return expression_lanczos<T>(size);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L588

window_planck_taper function

template <typename T = fbase>
expression_planck_taper<T> window_planck_taper(
    size_t size, identity<T> epsilon,
    window_symmetry symmetry = window_symmetry::symmetric,
    ctype_t<T> = ctype_t<T>())

Returns template expression that generates Planck-taper window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_planck_taper<T> window_planck_taper(
    size_t size, identity<T> epsilon, window_symmetry symmetry = window_symmetry::symmetric,
    ctype_t<T> = ctype_t<T>())
{
    return expression_planck_taper<T>(size, epsilon, symmetry);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L597

window_rectangular function

template <typename T = fbase>
expression_rectangular<T>
window_rectangular(size_t size, ctype_t<T> = ctype_t<T>())

Returns template expression that generates Rrectangular window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_rectangular<T> window_rectangular(size_t size, ctype_t<T> = ctype_t<T>())
{
    return expression_rectangular<T>(size, T());
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L452

window_triangular function

template <typename T = fbase>
expression_triangular<T>
window_triangular(size_t size, ctype_t<T> = ctype_t<T>())

Returns template expression that generates Triangular window of length size

Source code
template <typename T = fbase>
KFR_FUNCTION expression_triangular<T> window_triangular(size_t size, ctype_t<T> = ctype_t<T>())
{
    return expression_triangular<T>(size);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L461

window_tukey function

template <typename T = fbase>
expression_tukey<T> window_tukey(
    size_t size, identity<T> alpha,
    window_symmetry symmetry = window_symmetry::symmetric,
    ctype_t<T> = ctype_t<T>())

Returns template expression that generates Tukey window of length size (numpy compatible)

Source code
template <typename T = fbase>
KFR_FUNCTION expression_tukey<T> window_tukey(size_t size, identity<T> alpha,
                                              window_symmetry symmetry = window_symmetry::symmetric,
                                              ctype_t<T>               = ctype_t<T>())
{
    return expression_tukey<T>(size, alpha, symmetry);
}

https://github.com/kfrlib/kfr/blob//include/kfr/dsp/window.hpp#L608


Auto-generated from sources, Revision , https://github.com/kfrlib/kfr/blob//include/kfr/