Reference no: EM132214040
Question :
Write a statistics class to compute mean, variance, max and min of a vector of numbers.
Write a template class so that:
int main() {double a[] = {3.0, 4.0, 5.0};
Stats s(a); cout < < S < < '\n';
//print out mean, variance, min, max int b[] = {1, 2, 3, 4};
stats S2(b); cout < < S < < '\n';
//print out mean, variance, min, max