Hi Jason Thanks for your suggestion. I have renamed the function Levene to BrownForsythe, as well as added a comment to note that it assumes its input to be sorted ascendingly.
On Tuesday, 31 October 2023 at 02:18:51 UTC+8 Jason E. Aten wrote: > > On Monday, October 30, 2023 at 3:14:29 AM UTC 王富民awaw wrote: > > Therefore, perhaps I should not be following scipy and rename my function > from Levene to BrownForsythe? > > > Since you have made it available to the public Go community, yes, it would > be a good idea to name it BrownForsythe, > as it is using the deviations from the group medians. > > Also the function makes the assumption, as does Median, that each group's > samples[j] is already sorted. You > should document that assumption, or sort.Slice() each group's sample > before calling Median. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e12012dc-36c5-43e2-a165-02b0a480cce0n%40googlegroups.com.