DCT (Spark 3.5.5 JavaDoc) (original) (raw)


public class DCT
extends UnaryTransformer<Vector,Vector,DCT>
implements DefaultParamsWritable
A feature transformer that takes the 1D discrete cosine transform of a real vector. No zero padding is performed on the input vector. It returns a real vector of the same length representing the DCT. The return vector is scaled such that the transform matrix is unitary (aka scaled DCT-II).
More information on DCT-II in Discrete cosine transform (Wikipedia).
See Also:
Serialized Form