Skip to content
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

Standard Deviation #78

Open
iraj720 opened this issue May 20, 2023 · 5 comments
Open

Standard Deviation #78

iraj720 opened this issue May 20, 2023 · 5 comments

Comments

@iraj720
Copy link

iraj720 commented May 20, 2023

Hi
I found sth on paper which shows we can calculate SD of a dataset from SD's of its subsets :)
e.g : NEW_FUNCTION(SD({1,3}), SD(5), medians) = SD({1,3,5})
and the use case is where we have calculated the SD of 1000 rows of data and want to calculate SD of 1000 + 1 without processing former data
is this implemented in this library cause i didn't see such a thing
if it seems proper let me know to submit the pull request.
Thanks

@montanaflynn
Copy link
Owner

There's several standard deviation functions:

func StandardDeviation(input Float64Data) (sdev float64, err error) {}
func StandardDeviationPopulation(input Float64Data) (sdev float64, err error) {}
func StandardDeviationSample(input Float64Data) (sdev float64, err error) {}

@iraj720
Copy link
Author

iraj720 commented May 23, 2023

but seems that none of them are doing that thing that i have discussed

@montanaflynn
Copy link
Owner

I see what you mean now, got a link to the paper or more info? What would the new function be called?

Feel free to submit a PR as well!

@iraj720
Copy link
Author

iraj720 commented May 26, 2023

just submitted
#79

@manmartgarc
Copy link

@iraj720 can you submit a reference to the paper you refer? Why can't you just replicate the approach calling already existing functions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants