From 01aed029760fa81caf2f35f7093a22ae729b96b1 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 11 May 2017 21:53:15 +0200 Subject: Fix terminology: mode -> median ._. --- stddev.cpp | 4 ++-- 1 file 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: "<