public static void main(String[] args){
  try {
    out=new FileWriter(outputFile);
    out.write("Interpolation time comparison of the different methods:\n\n");
    out.write("interpolation method \t\t\t\t" + "1*2 grid \t" + "3*3 grid \t"+ "10*10 grid\n");
    out.write("-----------------------------------------------------------------------------------------------------\n");
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  testBiLinear();
  testBiCubic();
  testIDW();
  try {
    out.close();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

public static void main ( String [ ] args ) { try { out = new FileWriter ( outputFile ) ; out . write ( "Interpolation time comparison of the different methods:\n\n" ) ; out . write ( "interpolation method \t\t\t\t" + "1*2 grid \t" + "3*3 grid \t" + "10*10 grid\n" ) ; out . write ( "-----------------------------------------------------------------------------------------------------\n" ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } testBiLinear ( ) ; testBiCubic ( ) ; testIDW ( ) ; try { out . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
tests the three implemented interpolation methods bilinear interpolation , bicubic spline interpolation and inverse distance weighting at different test scenarios and compares the needed calculation times .
