Restore array values from average value