Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: compute distribution

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82485] Re: [mg82476] compute distribution
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 22 Oct 2007 05:35:06 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

$Version

5.2 for Mac OS X (June 20, 2005)

Needs["Graphics`"];

(* Needs["BarCharts`"]; Version 6 *)

str="ammmmmstgretsrdhydtudytyhsdefaweshgffdyhsfdhsgfjsdfdsfhkpgfkjgfjhkjhfdgkb\
fsdnfjkdsglhdsjfkgndsjgh";

alpha=CharacterRange["a","z"];

data=StringCount[str, #]&/@alpha;

BarChart[data, BarLabels->alpha,
    ImageSize->468]


Bob Hanlon

---- vickyisai at gmail.com wrote: 
> Hi ALL
> 
> How can i compute the distribution of signals fired from a net . ther
> are 26 different signals that can be fired.
> which is obtained the form below.
> 
> 
> { ammmmmstgretsrdhydtudytyhsdefaweshgffdyhsfdhsgfjsdfdsfhkpgfkjgfjhkjhfdgkbfsdnfjkdsglhdsjfkgndsjgh}
> 
> i ma confused with how to show the distribution plot. If i compute the
> "number of times" each signal has occured, than how it can be
> plotted.  (like a appears 12 times, b appears 13 times....than
> frequency of appearance can be represented on y axis but what can i
> take on x axis.
> 
> I work on mathematica 5.2
> 
> thnaks
> 
> Vick Al Aisa
> 
> 



  • Prev by Date: Installed new Version 6.1 Add Ons Problem
  • Next by Date: Re: Returning rules from functions inside a package context
  • Previous by thread: compute distribution
  • Next by thread: Re: compute distribution