-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Helper functions for arithmetic on MSDS #1081
Comments
Other functions might be useful, such as mean, median, range ( Some of these functions are numpy ufuncs, is there an easy way to just decorate and apply the numpy algorithms with the expected behavior? There could be other statistical methods that we are unaware of which could be useful to someone in the future. I've added the label good first issue if someone want's to implement just sum, mean, median, and std.dev which seem like the most useful set of options in my mind. |
It is worth noting that one of the reasons that those functions do not exist was to keep the classes lightweight thus one can trivially convert a |
Hello, 👋 Many thanks, |
Hi Berk, Sorry for the late reply! I was on holidays break and working on other things. Are you still interested into implementing this? Cheers, Thomas |
Thanks for getting back to me. I appreciate it. I'd be so happy to contribute. Many thanks, |
Hello, I think that we should be able to add them to the Idea would be to implement the various methods there and work using the Cheers, Thomas |
In a previous discussion the need for getting the sum of an MSDS object came up. I've needed to do this twice recently. Once where I needed the sum of the spectrum because I was computing the total power of a spectroradiometer measurement between the requisite wavelengths. And another time when each of the underlying instances of SpectralDistribution represented independent control channels of a light source (RGB for a spectral display model, for example)
So summation would need to have respect to some "axis", either the sum of the values for each SD object or the sum at every wavelength across all SDs
Originally posted by @KelSolaar in #1078 (reply in thread)
The text was updated successfully, but these errors were encountered: