private double Integrate(ArrayList shots, int index, double startTime, double endTime) { double temp = 0; foreach (Shot s in shots) temp += s.Integrate(index, startTime, endTime); return temp/shots.Count; }