public void importLargeIsosFileTest1()
        {
            IsosResultUtilities isosUtil = new IsosResultUtilities();

            isosUtil.LoadResults(largeIsosFile1, DeconTools.Backend.Globals.MSFileType.Finnigan);

            Assert.AreEqual(217847, isosUtil.Results.Count);

            int count = IsosResultUtilities.getCount(isosUtil.Results);

            Assert.AreEqual(200665, count);

            List <IsosResult> chargeOneResultsOnly   = IsosResultUtilities.getIsosResultsByChargeState(isosUtil.Results, 1, IsosResultUtilities.enumLinqOperator.EqualTo);
            List <IsosResult> chargeTwoResultsOnly   = IsosResultUtilities.getIsosResultsByChargeState(isosUtil.Results, 2, IsosResultUtilities.enumLinqOperator.EqualTo);
            List <IsosResult> chargeThreeResultsOnly = IsosResultUtilities.getIsosResultsByChargeState(isosUtil.Results, 3, IsosResultUtilities.enumLinqOperator.EqualTo);


            Assert.AreEqual(27541, chargeOneResultsOnly.Count);

            double avgScore = IsosResultUtilities.getAverageScore(chargeOneResultsOnly);
            double stdev    = IsosResultUtilities.getStdDevScore(chargeOneResultsOnly);

            Console.WriteLine(avgScore);
            Console.WriteLine(stdev);
        }
        public void getAverageScoreTest1()
        {
            TestUtilities     testUtils     = new TestUtilities();
            List <IsosResult> thrashResults = testUtils.CreateThrashIsosResults1();

            outputFitValuesToConsole(thrashResults);

            double avgFit = IsosResultUtilities.getAverageScore(thrashResults);

            Assert.AreEqual(0.0482473459193904, (decimal)avgFit);
        }
        public void getSpecificChargeStateResultsOnlyTest1()
        {
            TestUtilities     testUtils     = new TestUtilities();
            List <IsosResult> thrashResults = testUtils.CreateThrashIsosResults1();

            List <IsosResult> chargeTwoResultsOnly = IsosResultUtilities.getIsosResultsByChargeState(thrashResults, 2, IsosResultUtilities.enumLinqOperator.EqualTo);

            foreach (IsosResult result in chargeTwoResultsOnly)
            {
                Assert.AreEqual(2, result.IsotopicProfile.ChargeState);
            }
            Assert.AreEqual(136, chargeTwoResultsOnly.Count);



            double avgFit = IsosResultUtilities.getAverageScore(chargeTwoResultsOnly);

            Assert.AreEqual(0.0490575547734101m, (decimal)avgFit);
        }