1. 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.

  2. 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.

  3. 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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.