code: private void computeRatio() {
      for (int i = 0; i < vectorSize; i++) {
        double keyWeight = getWeight(keyVector[i]);
        double fpWeight = getWeight(fpVector[i]);
  
        if (keyWeight > 0 && fpWeight > 0) {
          ratio[i] = keyWeight / fpWeight;
        }
      }
    }
docs: Computes the ratio A/FP.