tdenoise function

Calculate the de-noised temporal tensor