Or login with:
| template<class T> Tmode( | int | n | |
| T* | data | ) |
#include<iostream> #include <codecogs/statistics/moments/mode.h> int main() { double x[11]={4, 4, 5, 5, 5, 8, 8, 8, 8, 9, 9}, res=Stats::Moments::mode(11, x); std::cout<<"The mode of the x array is:"<<res<<std::endl; return 0; }
The mode of the x array is: 8| n | the size of the array |
| data | the actual array of data |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
You must login to leave a messge