Пример #1
0
 public double QueryLongerThanTrack(
     double queryMatchStartsAt, double queryLength,
     double trackMatchStartsAt, double trackLength,
     double coverageWithPermittedGapsLength)
 {
     return(confidenceCalculator.CalculateConfidence(
                queryMatchStartsAt,
                queryLength,
                trackMatchStartsAt,
                trackLength,
                coverageWithPermittedGapsLength,
                coverageWithPermittedGapsLength,
                coverageWithPermittedGapsLength));
 }
Пример #2
0
        public void ShouldCalculateConfidence1()
        {
            // Query Length 2 mins
            // Source 30 sec (20 seconds of match available at the begining of the track)
            // 20 seconds match

            double confidence = confidenceCalculator.CalculateConfidence(0d, 20d, 120d, 10d, 30d);

            Assert.AreEqual(1d, confidence, 0.001);
        }
Пример #3
0
 public double QueryAndTrackOfEqualLength(
     double queryMatchStartsAt, double queryLength,
     double trackMatchStartsAt, double trackLength,
     double coverageWithPermittedGapsLength)
 {
     return(ConfidenceCalculator.CalculateConfidence(
                queryMatchStartsAt,
                queryLength,
                trackMatchStartsAt,
                trackLength,
                coverageWithPermittedGapsLength,
                coverageWithPermittedGapsLength,
                coverageWithPermittedGapsLength));
 }
Пример #4
0
 public double CoveragesOfDifferentLength(
     double queryMatchStartsAt, double queryLength,
     double trackMatchStartsAt, double trackLength,
     double coverageWithPermittedGapsLength,
     double queryDiscreteCoverageLength, double trackDiscreteCoverageLength)
 {
     return(ConfidenceCalculator.CalculateConfidence(
                queryMatchStartsAt,
                queryLength,
                trackMatchStartsAt,
                trackLength,
                coverageWithPermittedGapsLength,
                queryDiscreteCoverageLength,
                trackDiscreteCoverageLength));
 }