code: public static double BrayCurtis(double x1, double y1, double x2, double y2) {
          double sumN = Math.abs(x1 - x2) + Math.abs(y1 - y2);
          double sumP = Math.abs(x1 + x2) + Math.abs(y1 + y2);
  
          return sumN / sumP;
      }
docs: Gets the Bray Curtis distance between two points.
  
  @param x1 X1 axis coordinate.
  @param y1 Y1 axis coordinate.
  @param x2 X2 axis coordinate.
  @param y2 X2 axis coordinate.
  @return The Bray Curtis distance between x and y.