Estimate of the time-varying coherence