//This script calculate the total acceleration as a quadratic sum of the longitudinal and lateral ones.

for(  i = 0; i < size; i++) { 
   output[i]=Math.sqrt(Math.pow(dgpsS[i],2)+Math.pow(lacc[i],2));

}

