public static void main(String[] args){
  int option=Integer.parseInt(args[0]);
  GridType gridType=GridType.valueOf(args[1]);
  KdeType kdeType=KdeType.valueOf(args[2]);
  GridExample example=new GridExample(option,gridType,kdeType);
  example.run();
  try {
    AnalysisLauncher.open(example);
  }
 catch (  Exception e) {
    e.printStackTrace();
    throw new RuntimeException("Cannot visualise!!");
  }
}

public static void main ( String [ ] args ) { int option = Integer . parseInt ( args [ 0 ] ) ; GridType gridType = GridType . valueOf ( args [ 1 ] ) ; KdeType kdeType = KdeType . valueOf ( args [ 2 ] ) ; GridExample example = new GridExample ( option , gridType , kdeType ) ; example . run ( ) ; try { AnalysisLauncher . open ( example ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; throw new RuntimeException ( "Cannot visualise!!" ) ; } }
main class to run the grid example . at the end of the run , the code produces a visualisation of the points / lines .
