diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-05-11 21:53:15 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-05-11 21:53:25 +0200 |
commit | 01aed029760fa81caf2f35f7093a22ae729b96b1 (patch) | |
tree | 842e5ae2e78e5948821fa3cb23555a94fadcedcb | |
parent | 68bcbf1e0e61958f737bfc279974903f1b0c2502 (diff) |
Fix terminology: mode -> median ._.
-rw-r--r-- | stddev.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,7 +33,7 @@ int main(int,char **argv){ sort(data.begin(),data.end()); const double s_mean=total/data.size(); - const double s_mode=data[data.size()/2]; + const double s_median=data[data.size()/2]; total=0; for(double v : data){ @@ -43,5 +43,5 @@ int main(int,char **argv){ cout<<"Mean: "<<s_mean<<endl <<"Stddev: "<<s_stddev<<endl - <<"Mode: "<<s_mode<<endl; + <<"Median: "<<s_median<<endl; } |