added automatic threshold value estimation based on variance of time
series and info for manual build