TOD: Temporal outlier detection by using quasi-functional temporal dependencies