Gathering Mean and StDev from multiple inputs at once

  void clear(); //explicitly start clean

This declares a function called clear() which will only be known in the setup() function. It does not call it and you don't have a clear() function in your code.

Pete