Algorithm-WordLevelStatistics
view release on metacpan or search on metacpan
lib/Algorithm/WordLevelStatistics.pm view on Meta::CPAN
package Algorithm::WordLevelStatistics;
use strict;
use vars qw($VERSION);
$VERSION = '0.03';
sub new {
my $class = shift;
return bless {
version => $VERSION,
}, $class;
}
# computes the statistical level of a single word (given its spectrum and the total number of words in the text)
sub compute_spectrum {
my ($self, $N, $s) = @_;
my $n = @{$s};
( run in 1.091 second using v1.01-cache-2.11-cpan-de7293f3b23 )