Beispiel #1
0
 /** Sets the probability of observing this cross-link with its Euclidean distance. */
 public final void setEucProbability() {
   float preProb = -1;
   TreeSet<Float> sortedBins =
       new TreeSet<Float>(ParameterReader.getEuclideanDistanceProbabilitySet().keySet());
   for (float bin : sortedBins) {
     float prob = ParameterReader.getEuclideanDistanceProbabilitySet().get(bin);
     if (bin > this.eucDist) {
       this.eucDistProbability = preProb;
       break;
     }
     preProb = prob;
   }
   if (this.eucDistProbability == -1 && this.eucDist != -1) {
     this.eucDistProbability = 0;
   }
   this.doProbability = true;
 }