class Frechet {

  public static double discreteFrechet(ILineString p, ILineString q) {
    // System.out.println("FRECHET P = " + p);
    // System.out.println("FRECHET Q = " + q);
    int sizeP = p.sizeControlPoint();
    int sizeQ = q.sizeControlPoint();
    double[][] ca = new double[sizeP][sizeQ];
    for (int i = 0; i < sizeP; i++) {
      for (int j = 0; j < sizeQ; j++) {
        ca[i][j] = -1.0;
      }
    }
    double d = discreteFrechetCouplingMeasure(p, q, sizeP - 1, sizeQ - 1, ca);

    return d;
  }

}