Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Counting Runs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52018] Re: Counting Runs
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Sun, 7 Nov 2004 01:03:46 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

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