예제 #1
0
 public FSTTester(RandomTester r, int inputMode, List <InputOutput <T> > pairs, Outputs <T> outputs, bool doReverseLookup)
 {
     this.r               = r;
     this.inputMode       = inputMode;
     this.pairs           = pairs;
     this.outputs         = outputs;
     this.doReverseLookup = doReverseLookup;
 }
예제 #2
0
        private void AButton_Click(object sender, System.EventArgs e)
        {
            string fileName = $"{DateTime.Now:yyyy-MM-dd-HH-mm-ss}.bin";
            var    path     = Path.Combine(Application.Context.GetExternalFilesDir(null).AbsolutePath, fileName);

            RandomTester.CreateBinaryData(path);

            aButton.Text = path;
        }
예제 #3
0
        static void Main(string[] args)
        {
            string fileName = $"{DateTime.Now:yyyy-MM-dd-HH-mm-ss}.bin";

            RandomTester.CreateBinaryData(fileName);

            Console.WriteLine("Done");
            Console.ReadLine();
        }
예제 #4
0
        static void Main(string[] args)
        {
            //string mainSeed = (args?.Length??0) > 0 ? args[0] : "TasksChooser.RandomTest";
            //int contOfColumns = (args?.Length ?? 0) > 1 ? Convert.ToInt32(args[1]) : 100;
            //int contOfIRows = (args?.Length ?? 0) > 2 ? Convert.ToInt32(args[2]) : 100000;
            string fileName = $"{DateTime.Now:yyyy-MM-dd-HH-mm-ss}";

            RandomTester.CreateBinaryData(fileName + ".bin");
            //CreateTextData(fileName + ".csv");

            Console.WriteLine("Done");
            Console.ReadLine();
        }