mean1 and mean2 are the mean of two arrays .
var mean1 = mean ( arr1 , n ) ; var mean2 = mean ( arr2 , m ) ; document . write ( " " + mean1 . toFixed ( 4 ) + " " ) ; document . write ( " " + mean2 + " " ) ;