fixed deltaMagnitude in dataenvelope - converted to double