The optimal sampling point for the quality assessment of continuous streams