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
Distribution naming and namespaces #15
Comments
Two separate namespaces: And since they are under a Distribution namespace, there is no need to put Distribution in any of the class names. Then each can also have a unique base class to inherit from, since Continuous would have a PDF method, and a Discrete would have a pmf method, etc. |
Done in the Distribution pull request. |
The Discrete classes have been moved as well. There's a pull request for it. |
* Create Boolean.php * Create BooleanTest.php * Rename (#15) * Create Bitwise.php
It looks like there are both continuous and discrete uniform interval distributions....which looks like a problem than be solved my either class naming standards, or namespacing. Would you prefer a Math\Probability\Distribution\Continuous and Discrete namespaces, or just keep everything in Distribution?
On a similar vein, do you think all the classes and files need to have 'Distribution' in their names? Would things be cleaner to just have 'StandardNormal.php'?
The text was updated successfully, but these errors were encountered: