private void PerformModelTest(SolverWrapper model, int iterations, double dt) { for (int i = 1; i < iterations; i++) { double currentTime = i * dt; model.NextIteration(currentTime, dt); } }
public Launcher(DifferentialEquations differentialEquations, ExactSolution exactSolution, params ISolver[] solvers) { this.differentialEquations = differentialEquations; this.exactSolution = exactSolution; wrappers = new SolverWrapper[solvers.Length]; for (int i = 0; i < wrappers.Length; i++) { wrappers[i] = new SolverWrapper(solvers[i], differentialEquations); } }
public SolverResults(SolverWrapper wrapper, List <DataSample> referenceSolution, long executionTime) { solver = wrapper.Solver; this.executionTime = executionTime; Mse = GetMse(wrapper.Data, referenceSolution); }