Skip to content

Commit

Permalink
corrected mistake in CAverage to calculate the average potential energy
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannHansing committed Jul 13, 2016
1 parent c8110b8 commit ece3485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CAverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ CAverage::CAverage(string name, string folder, int datapoints)
void CAverage::addInstantValue(vector<double> v) {
for (int i=0; i<_points; i++){
_instantValues[i] += v[i];
_instantValues[i] += v[i]*v[i];
_errors[i] += v[i]*v[i];
}
//Formula from Wikipedia: Standartabweichung: Bearbeitung fuer auflaufende Messwerte + Standardfehler
//continues saveAverageInstantValues()!
Expand Down

0 comments on commit ece3485

Please sign in to comment.