-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Covariance #5
Comments
Hi, Covariance is in Math\Statistics\RandomVariable. See if that does what you want. For static vs object methods, a lot of math functions are input and output, so it makes sense to be static. However, whenever I get to linear algebra, I was planning on having classes for Vector and Matrix etc. and they would have object methods to do various matrix operations. Basically, any time where you would want to do multiple operations on the same data, I think it makes sense to make an object. I see what you are thinking with Regressions. I think that would be a good design change, especially considering there are functions to evaluate for y based on the regression parameters. |
I've refactored Regressions into individual classes that are instantiated, which extend a base Regression class. |
Your Statistics/Descriptive class has variance. Where would you like to put Covariance? Are you planning on keeping single variable statistics in Descriptive, and multi-factor statistics in either another class, or in Regression?
Bigger picture question...Are you planning on making all your methods static, and is there a reason for this choice? Would it be easier for users to code more like:
The text was updated successfully, but these errors were encountered: