MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Counting Runs


On 11/6/04 at 2:08 AM, drbob at bigfoot.com (DrBob) wrote:

>And the new winner -- for both speed and simplicity -- is:

>brt4[v_List] := Frequencies@Split[v][[All, 1]]

Where is the function Frequencies to be found?

If it is the function found in Statistics`DataManipulation` then that is coded

{Length[#],First[#]}&/@Split[Sort[list]]

Since this the same as one of your other suggestions, how can using this version of Frequencies be faster?
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Re: Inverse of "PowerExpand"
  • Next by Date: Re: MathGroup /: Descriptive headings
  • Previous by thread: Re: Re: Counting Runs
  • Next by thread: Re: Re: Counting Runs