Package ru.autosome.macroape.calculation.generalized

Examples of ru.autosome.macroape.calculation.generalized.CompareModelsCountsGiven


    }
    return result;
  }

  protected double calculateDistance(PWMWithThreshold first, PWMWithThreshold second) throws HashOverflowException {
    CompareModelsCountsGiven calc;
    CompareModelsCountsGiven.SimilarityInfo info;
    calc = calculator(first.pwm, second.pwm);

    info = calc.jaccard(first.roughThreshold, second.roughThreshold,
                        first.roughCount, second.roughCount);
    if (preciseRecalculationCutoff != null && info.similarity() > preciseRecalculationCutoff) {
      calc = calculator(first.pwm, second.pwm);
      info = calc.jaccard(first.preciseThreshold, second.preciseThreshold,
                          first.preciseCount, second.preciseCount);
    }
    return info.distance();
  }
View Full Code Here

TOP

Related Classes of ru.autosome.macroape.calculation.generalized.CompareModelsCountsGiven

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.