Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: (Ovid) Re: Letter frequencies

by mdillon (Priest)
on Nov 24, 2000 at 03:56 UTC ( [id://43182]=note: print w/replies, xml ) Need Help??


in reply to (Ovid) Re: Letter frequencies
in thread Letter frequencies

i would add a running total of all characters seen as well, to facilitate calculating the actual frequencies, not just the counts.

update: what MJD said (infra).

Replies are listed 'Best First'.
Re: Letter frequencies
by Dominus (Parson) on Nov 24, 2000 at 04:00 UTC
    mdillon says:
    > i would add a running total of all characters seen as well
    While I agree with you that such a total would be useful, it's clearly much cheaper to compute it at the end:
    for my $symbol (keys %symbol) { $total += $symbol{$symbol}; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://43182]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-23 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found