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}; }