Skip to contents

Splits x into its even (symmetric) and odd (anti-symmetric) components about the centre: x_even = (x + rev(x))/2, x_odd = (x - rev(x))/2.

Usage

morie_dsp_even_odd(x)

Arguments

x

Numeric vector.

Value

List with even and odd.

References

Rangayyan & Krishnan (2015), Ch. 3.

Examples

x <- c(1, 2, 3, 4, 5)
d <- morie_dsp_even_odd(x)
d$even + d$odd  # reconstructs x
#> [1] 1 2 3 4 5