changed error calculation to recommended method (should be equivalent)
changed error calculation to recommended method (should be equivalent)

markusrademacher/datahandling,AshleySetter/datahandling,markusrademacher/datahandling,AshleySetter/datahandling,AshleySetter/optoanalysis,AshleySetter/optoanalysis