summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-05-11 21:53:15 +0200
committertomsmeding <tom.smeding@gmail.com>2017-05-11 21:53:25 +0200
commit01aed029760fa81caf2f35f7093a22ae729b96b1 (patch)
tree842e5ae2e78e5948821fa3cb23555a94fadcedcb
parent68bcbf1e0e61958f737bfc279974903f1b0c2502 (diff)
Fix terminology: mode -> median ._.
-rw-r--r--stddev.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/stddev.cpp b/stddev.cpp
index c804bf3..5f4c8a7 100644
--- a/stddev.cpp
+++ b/stddev.cpp
@@ -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;
}