Hit a snag whilst adding a subclass to std::vector
My idea was initially to create my own custom vector with methods built in for various mathematical calculations, as well as the usual std::vector features, for the sake of regression analysis. I decided it made more sense to expand the std::vector library with a subclass, which will inherit the std::vector features whilst having those mathematical methods as well.
I decided to create two new vectors, one for each data set used with methods for averaging, summing and so on, and these vectors are to be inserted into the second vector which calculates the correlation coefficient, p-value and other things which require two or more data sets.