public static double rangeEnvelopeScore(double anchor,double target){
  if (anchor < 0 || target < 0) {
    throw new IllegalArgumentException(String.format("Arguments must be positive numbers, not %f, %f",anchor,target));
  }
  if (target < anchor) {
    return 1;
  }
  return anchor / target;
}

public static double rangeEnvelopeScore ( double anchor , double target ) { if ( anchor < 0 || target < 0 ) { throw new IllegalArgumentException ( String . format ( "Arguments must be positive numbers, not %f, %f" , anchor , target ) ) ; } if ( target < anchor ) { return 1 ; } return anchor / target ; }
gives a number representing how well a field that reaches an anchor number can also reach a target number .
