private void TotalResponseCalculate() { if (VehicleDataNeedsToRecalculate) { if (TotalResponse == null) { TotalResponse = new List <double>(); } TotalResponse.Clear(); for (int i = 0; i < TimeIntervals.Count; i++) { double x = ResponseToInitialConditions[i] + ResponseToHarmonicInput[i]; TotalResponse.Add(x); } VehicleDataNeedsToRecalculate = false; } }
private void TotalResponseCalculate() { if (ResponseNeedsToRecalculate) { if (TotalResponse == null) { TotalResponse = new List <double>(); } TotalResponse.Clear(); //DateTime time = DateTime.Now; for (int i = 0; i < TimeIntervals.Count; i++) { double x = ResponseToInitialConditions[i] + ResponseToHarmonicInput[i]; TotalResponse.Add(x); } //_tTotalResponse = (DateTime.Now - time).TotalMilliseconds; } }