Intuitively, "frequencies" seems like the better option to me. Repetitions and occurrences are also a bit hazy in terms of their definitions. While "frequency" is the "rate", (or "count"), the intended meaning of "occurrence" is stated in terms of frequency (Oxford): "the fact or frequency of something happening." (And there are other definitions). Repetition simply means "the recurrence of an action or event."
In my opinion "repetitions" doesn't convey "count of repetitions", and while "occurrences" does seem to work, "frequencies" has fewer alternative definitions to compete with and is in my opinion easier to understand. I should also note that "frequency" is also a noun. I'm not sure if eksperimental meant otherwise, just stating for clarification. On Sun, Oct 20, 2019, at 07:52, José Valim wrote: > Thanks Eksperimental and Derek! > > Derek, In any case, would repetitions or occurrences be better definitions? > > On Sun, Oct 20, 2019 at 07:47 Derek Kraan <[email protected]> wrote: >> __ >> Oxford dictionary defines frequency as: the rate at which something occurs >> over a particular period of time or in a given sample. >> >> In this case, the input is the given sample. So the proposed usage is >> consistent with the dictionary definition of the word (and my own intuition >> as a native speaker). >> >> On Sun, Oct 20, 2019, at 03:37, eksperimental wrote: >>> The problem that I have with "frequencies" is that it means RATE over a >>> PERIOD of time or some >>> other unit. >>> I like the move to a function name that uses nouns, instead of verbs. >>> I think we should speak more of "repetition", "recurrence" or >>> "occurrences", "instances" >>> my two cents >>> >>> >>> On Fri, 18 Oct 2019 02:17:49 +0200 >>> José Valim <[email protected]> wrote: >>> >>> > I am not a big fan of group_count/1 and group_count_by/2 because it starts >>> > to nudge us in the direction of group_min, group_min_by, and friends. >>> > >>> > Perhaps frequencies/1 and frequencies_by/2 works best (assuming it is >>> > clearer than tally). It at least matches better with min/max/sum, which >>> > are >>> > nouns? >>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "elixir-lang-core" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected] >>> <mailto:elixir-lang-core%[email protected]>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/elixir-lang-core/20191020083716.01038aeb%40localhostx. >>> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "elixir-lang-core" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elixir-lang-core/a5a002ce-b05c-4392-b95d-7a3e00844679%40www.fastmail.com >> >> <https://groups.google.com/d/msgid/elixir-lang-core/a5a002ce-b05c-4392-b95d-7a3e00844679%40www.fastmail.com?utm_medium=email&utm_source=footer>. > -- > > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R&D > > -- > You received this message because you are subscribed to the Google Groups > "elixir-lang-core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BWeU%2BYTr-8kK92xD9fTn9PrEgQXGuxs%2BiQC5tcJi1g1w%40mail.gmail.com > > <https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BWeU%2BYTr-8kK92xD9fTn9PrEgQXGuxs%2BiQC5tcJi1g1w%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/64897a80-8ead-4823-876a-32b65ac086ca%40www.fastmail.com.
