Calculation of threshold values based on a test file in testGMM