lmd function

Local Mean Decomposition