Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        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;
            }
        }