private void TestCalculatorPerfomance(CalcateFunc calculateFunc) {
      var twister = new MersenneTwister(31415);
      var dataset = CreateRandomDataset(twister, Rows, Columns);
      OnlineCalculatorError errorState = OnlineCalculatorError.None; ;

      Stopwatch watch = new Stopwatch();
      watch.Start();
      for (int i = 0; i < Repetitions; i++) {
        double value = calculateFunc(dataset.GetDoubleValues("y"), dataset.GetDoubleValues("x0"), out errorState);
      }
      Assert.AreEqual(errorState, OnlineCalculatorError.None);
      watch.Stop();

      TestContext.WriteLine("");
      TestContext.WriteLine("Calculated Rows per milisecond: {0}.", Rows * Repetitions * 1.0 / watch.ElapsedMilliseconds);
    }
        private void TestCalculatorPerfomance(CalcateFunc calculateFunc)
        {
            var twister = new MersenneTwister(31415);
            var dataset = CreateRandomDataset(twister, Rows, Columns);
            OnlineCalculatorError errorState = OnlineCalculatorError.None;;

            Stopwatch watch = new Stopwatch();

            watch.Start();
            for (int i = 0; i < Repetitions; i++)
            {
                double value = calculateFunc(dataset.GetDoubleValues("y"), dataset.GetDoubleValues("x0"), out errorState);
            }
            Assert.AreEqual(errorState, OnlineCalculatorError.None);
            watch.Stop();

            TestContext.WriteLine("");
            TestContext.WriteLine("Calculated Rows per milisecond: {0}.", Rows * Repetitions * 1.0 / watch.ElapsedMilliseconds);
        }