public void toFile ( File file , Engine engine , InputVariable a , InputVariable b , int values , FldExporter . ScopeOfValues scope , List < OutputVariable > outputVariables ) throws IOException { BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( new FileOutputStream ( file ) , FuzzyLite . UTF_8 ) ) ; try { writeScriptExportingDataFrame ( engine , writer , a , b , values , scope , outputVariables ) ; } catch ( RuntimeException ex ) { throw ex ; } catch ( IOException ex ) { throw ex ; } finally { writer . close ( ) ; } }
Creates an R script file plotting multiple surfaces based on a data frame generated with the given number of values and scope for the two input variables