Text this: Unified study on the decomposition for deterministic signals and stationary random signals