public static NCGrid_Distribution NiceFunction(string vb_syntax_eval, RBounds2D bounds, int xcount, int ycount, bool keepfile, string title) { ExactFunctionGeneratorVB2D.GenerateFunction(vb_syntax_eval, bounds, xcount, ycount, title); NCGrid_Distribution n = NCGrid_Distribution.from_file(title, false); return(n); }
public static NCGrid_Distribution NiceFunction(string vb_syntax_eval, RBounds2D bounds, int xcount, int ycount) { ExactFunctionGeneratorVB2D.GenerateFunction(vb_syntax_eval, bounds, xcount, ycount, "temp"); NCGrid_Distribution n = NCGrid_Distribution.from_file("temp", false); string to_delete = Paths.DistributionRepo + "\\temp.dist"; File.Delete(to_delete); return(n); }
public static NCGrid_Distribution CompareNiceClean(NCGrid_Distribution test, string vbs_test_function) { string title = "temp"; string path = Paths.DistributionRepo + "\\" + title + ".dist"; ExactFunctionGeneratorVB2D.GenerateFunction(vbs_test_function, test, title); NCGrid_Distribution true_dist = NCGrid_Distribution.from_file(title, false); File.Delete(path); NCGrid_Distribution dif = test - true_dist; dif.force_extrema_update(); return(dif); }