This method test the output validity of AlternatingLeastSquareITCase.
Due to the floating point math error, the output of the test can be different every time.
Thus we cannot compare plain text output, but have to check its numeric error.
resourcePath - path to resources.
outputFileName - name of output file.
testResourceFileName - name of the file to compare the outputs to.