Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Text::NSP::Measures::3D::MI::ps 1.03

    Download button

    No screenshots available
    Downloads: 276  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Text::NSP::Measures::3D::MI::ps team | More programs
    GPL / FREE
    March 16th, 2007, 06:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Text::NSP::Measures::3D::MI::ps description

    Text::NSP::Measures::3D::MI::ps is a Perl module that implements Poisson Stirling Measure for trigrams.

    Text::NSP::Measures::3D::MI::ps is a Perl module that implements Poisson Stirling Measure for trigrams.

    SYNOPSIS

    Basic Usage

    use Text::NSP::Measures::3D::MI::ps;

    $ps_value = calculateStatistic( n111=>10,
    n1pp=>40,
    np1p=>45,
    npp1=>42,
    n11p=>20,
    n1p1=>23,
    np11=>21,
    nppp=>100);

    if( ($errorCode = getErrorCode()))
    {
    print STDERR $erroCode." - ".getErrorMessage()."n";
    }
    else
    {
    print getStatisticName."value for bigram is ".$ps_value."n";
    }

    The log-likelihood ratio measures the devitation between the observed data and what would be expected if < word1 >, < word2 > and < word3 > were independent. The higher the score, the less evidence there is in favor of concluding that the words are independent.

    The expected values for the internal cells are calculated by taking the product of their associated marginals and dividing by the sample size, for example:

    n1pp * np1p * npp1
    m111= --------------------
    nppp

    The poisson stirling measure is a negative lograthimic approximation of the poisson-likelihood measure. It uses the stirlings firmula to approximate the factorial in poisson-likelihood measure. It is computed as follows:
    Posson-Stirling = n111 * ( log(n111) - log(m111) - 1)

    Methods

    calculateStatistic() - This method calculates the ps value
    INPUT PARAMS : $count_values .. Reference of an hash containing the count values computed by the count.pl program.

    RETURN VALUES : $poissonStirling .. Poisson-Stirling value for this trigram.

    getStatisticName() - Returns the name of this statistic

    INPUT PARAMS : none

    RETURN VALUES : $name .. Name of the measure.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Poisson Stirling | trigrams measure | Perl module | Text::NSP::Measures: | Poisson | Stirling

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM