First glaring error - 'use Security::Monitoring::Utils;' - that isn't included so I can't run it. When I comment that out, it seems to run fine.
I'd give your POD a review with 'podcheker'. Run 'podchecker -w -w filename'; I get a lot of errors running your POD through it.
Once that's corrected, adding to / organizing your POD so it's helpful to a first time user would be great. I was able to deduce from trial and error the basics I needed to get something running (see below), but a SYNOPSIS section usually includes this. What's in your SYNOPSIS section is usually put under a DESCRIPTION section.
FYI, I ran this on Windows x64 with Strawberry 5.18.1 (64-bit) and it ran fine with my \usr\ install from GnuWin32 (which included /usr/share/dict/words'.
my $sec = Security::Monitoring::Detection::Markov->new(10); $sec->sys_learn(); print "finger = " . $sec->get_score('finger') . "\n"; print "alkajsdfa = " . $sec->get_score('alkajsdfa') . "\n"; print "xxxphotoblatxxx = " . $sec->get_score('xxxphotoblatxxx') . "\n" +;
Output:
finger = 1.89777628064316e-006 alkajsdfa = 2.84666442096473e-006 xxxphotoblatxxx = 4.74444070160789e-006
In reply to Re: Markov Chain automata class
by VinsWorldcom
in thread Markov Chain automata class
by QuillMeantTen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |