obspy.signal.util.rdct

rdct(x, n=0)[source]

Computes discrete cosine transform of given signal. Signal is truncated/padded to length n.

Params x

signal to compute discrete cosine transform

Params n

window length (default: signal length)

Return y

discrete cosine transform