2d
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 323
EQdkp 1.3.2d
EQdkp project is a Web-based DKP solution. more>>
EQdkp project is a Web-based DKP solution.
EQdkp is a PHP-based DKP solution to help guilds in EverQuest track guild members attendance, item purchases and other statistics.
It features templating, plugin support, and supports various database abstraction layers, amongst many other features.
Many EverQuest guilds wanted to use the point system but didnt have the means or time or will to create their own program for managing it. The main focus of EQdkp is to make loot distribution decisions as easy as possible for guild leaders while still allowing the system to be easy to maintain.
EQdkp was originally created with the notion that one closed-source installation of it would support many guilds point systems. It was later released as an Open Source project so that it would be much more customizable by each guild.
DKP, short for Dragon Kill Points, is a concept originally created by Thott of Afterlife. These points are awarded to each guild member as they attend a guild raid. The current DKP of each member reflects his or her priority for loot. When a member "wins" an item, they lose a DKP amount that reflects the value of that item.
DKP allows for an unbiased comparison between guild members when decisions about loot are to be made based on attendance and recent items that have been awarded.
<<lessEQdkp is a PHP-based DKP solution to help guilds in EverQuest track guild members attendance, item purchases and other statistics.
It features templating, plugin support, and supports various database abstraction layers, amongst many other features.
Many EverQuest guilds wanted to use the point system but didnt have the means or time or will to create their own program for managing it. The main focus of EQdkp is to make loot distribution decisions as easy as possible for guild leaders while still allowing the system to be easy to maintain.
EQdkp was originally created with the notion that one closed-source installation of it would support many guilds point systems. It was later released as an Open Source project so that it would be much more customizable by each guild.
DKP, short for Dragon Kill Points, is a concept originally created by Thott of Afterlife. These points are awarded to each guild member as they attend a guild raid. The current DKP of each member reflects his or her priority for loot. When a member "wins" an item, they lose a DKP amount that reflects the value of that item.
DKP allows for an unbiased comparison between guild members when decisions about loot are to be made based on attendance and recent items that have been awarded.
Download (MB)
Added: 2007-06-05 License: GPL (GNU General Public License) Price:
876 downloads
EMWave2D 0.3
EMWave2D project is a 2D electromagnetic wave simulation program. more>>
EMWave2D project is a 2D electromagnetic wave simulation program. It solves Maxwells equation using Finite Difference Time Domain (FDTD) method.
It is very simple program to use and to modify. It can do many different simulations such as scattering, diffraction, and refraction.
<<lessIt is very simple program to use and to modify. It can do many different simulations such as scattering, diffraction, and refraction.
Download (0.11MB)
Added: 2007-02-13 License: GPL (GNU General Public License) Price:
1006 downloads
Zelda2D 0.2.3
Zelda2D is a Zelda related JumpnRun Game in 2D. more>>
Zelda2D is a Zelda related JumpnRun game in 2D.
This is a Zelda related fangame. A classic JumpnRun style game featuring Link from Zelda collecting rubins and defending evil opponents.
The game itself is a game-engine reading levels from XML-files. Its very easy to write own levels and to design objects in the game.
<<lessThis is a Zelda related fangame. A classic JumpnRun style game featuring Link from Zelda collecting rubins and defending evil opponents.
The game itself is a game-engine reading levels from XML-files. Its very easy to write own levels and to design objects in the game.
Download (12.2MB)
Added: 2007-01-07 License: GPL (GNU General Public License) Price:
1034 downloads
Eclipse 2D Game Engine 1.0
Eclipse 2D Game Engine provides bitmap fonts, window management, audio capabilities, image loading, error logging, and zip file. more>>
Eclipse is a set of C++ classes designed to give beginner developers a head start in developing their first games as well as more experienced developers who dont want to have to write code for mundane tasks like fonts, sprites, and image loading.
Eclipse 2D Game Engine provides bitmap fonts, window management, audio capabilities, image loading, error logging, and zip file support.
<<lessEclipse 2D Game Engine provides bitmap fonts, window management, audio capabilities, image loading, error logging, and zip file support.
Download (0.38MB)
Added: 2006-08-24 License: GPL (GNU General Public License) Price:
1166 downloads
Text::NSP::Measures::2D 1.01
Text::NSP::Measures::2D is a Perl module that provides basic framework for building measure of association for bigrams. more>>
Text::NSP::Measures::2D is a Perl module that provides basic framework for building measure of association for bigrams.
SYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::ll;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$ll_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$ll_value."n"";
}
This module is to be used as a foundation for building 2-dimensional measures of association. The methods in this module retrieve observed bigram frequency counts, marginal totals, and also compute expected values. They also provide error checks for these counts.
<<lessSYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::ll;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$ll_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$ll_value."n"";
}
This module is to be used as a foundation for building 2-dimensional measures of association. The methods in this module retrieve observed bigram frequency counts, marginal totals, and also compute expected values. They also provide error checks for these counts.
Download (0.93MB)
Added: 2006-08-30 License: Perl Artistic License Price:
1150 downloads
Games::OpenGL::Font::2D 0.07
Games::OpenGL::Font::2D module can load/render 2D colored bitmap fonts via OpenGL. more>>
Games::OpenGL::Font::2D module can load/render 2D colored bitmap fonts via OpenGL.
SYNOPSIS
use Games::OpenGL::Font::2D;
my $font = Games::OpenGL::Font::2D->new(
file => font.bmp );
use SDL::App::FPS;
my $app = SDL::App::FPS->new( ... );
# dont forget to change these on resize events!
$font->screen_width( $app->width() );
$font->screen_height( $app->width() );
$font->pre_output(); # setup rendering for font
$font->color( [ 0,1,0] ); # yellow as array ref
$font->color( 1,0,0 ); # or red
$font->alpha( 0.8 ); # nearly opaque
# half-transparent, red
$font->output (100,100, Hello OpenGL!, [ 1,0,0], 0.5 );
# using the $fonts color and alpha
$font->output (100,200, Hello OpenGL! );
$font->transparent( 1 ); # render font background transparent
$font->spacing_y( 16 ); # render vertical (costly rebuild!)
$font->spacing_x( 0 ); # (costly rebuild!)
$font->output (100,200, Hello OpenGL! );
$font->post_output(); # if wanted, you can reset OpenGL
EXPORTS
Exports nothing on default. Can export on demand the following:
FONT_ALIGN_LEFT
FONT_ALIGN_RIGHT
FONT_ALIGN_CENTER
FONT_ALIGN_TOP
FONT_ALIGN_BOTTOM
<<lessSYNOPSIS
use Games::OpenGL::Font::2D;
my $font = Games::OpenGL::Font::2D->new(
file => font.bmp );
use SDL::App::FPS;
my $app = SDL::App::FPS->new( ... );
# dont forget to change these on resize events!
$font->screen_width( $app->width() );
$font->screen_height( $app->width() );
$font->pre_output(); # setup rendering for font
$font->color( [ 0,1,0] ); # yellow as array ref
$font->color( 1,0,0 ); # or red
$font->alpha( 0.8 ); # nearly opaque
# half-transparent, red
$font->output (100,100, Hello OpenGL!, [ 1,0,0], 0.5 );
# using the $fonts color and alpha
$font->output (100,200, Hello OpenGL! );
$font->transparent( 1 ); # render font background transparent
$font->spacing_y( 16 ); # render vertical (costly rebuild!)
$font->spacing_x( 0 ); # (costly rebuild!)
$font->output (100,200, Hello OpenGL! );
$font->post_output(); # if wanted, you can reset OpenGL
EXPORTS
Exports nothing on default. Can export on demand the following:
FONT_ALIGN_LEFT
FONT_ALIGN_RIGHT
FONT_ALIGN_CENTER
FONT_ALIGN_TOP
FONT_ALIGN_BOTTOM
Download (0.022MB)
Added: 2007-08-13 License: Perl Artistic License Price:
809 downloads
Text::NSP::Measures::2D::MI 1.03
Text::NSP::Measures::2D::MI is a Perl module that provides error checks for Loglieklihood. more>>
Text::NSP::Measures::2D::MI is a Perl module that provides error checks for Loglieklihood, Total Mutual Information, Pointwise Mutual Information and Poisson-Stirling Measure.
SYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::ll;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$ll_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$ll_value."n"";
}
<<lessSYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::ll;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$ll_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$ll_value."n"";
}
Download (0.93MB)
Added: 2007-03-13 License: Perl Artistic License Price:
955 downloads
Text::NSP::Measures::2D::MI::pmi 1.03
Text::NSP::Measures::2D::MI::pmi is a Perl module that implements Pointwise Mutual Information. more>>
Text::NSP::Measures::2D::MI::pmi is a Perl module that implements Pointwise Mutual Information.
SYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::pmi;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$pmi_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$pmi_value."n"";
}
<<lessSYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::pmi;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$pmi_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$pmi_value."n"";
}
Download (0.93MB)
Added: 2007-03-13 License: GPL (GNU General Public License) Price:
955 downloads
Text::NSP::Measures::2D::MI::ll 1.03
Text::NSP::Measures::2D::MI::ll is a Perl module that implements Loglikelihood measure of association for bigrams. more>>
Text::NSP::Measures::2D::MI::ll is a Perl module that implements Loglikelihood measure of association for bigrams.
SYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::ll;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$ll_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage();
}
else
{
print getStatisticName."value for bigram is ".$ll_value;
}
<<lessSYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::ll;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$ll_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage();
}
else
{
print getStatisticName."value for bigram is ".$ll_value;
}
Download (0.93MB)
Added: 2007-03-13 License: Perl Artistic License Price:
955 downloads
Text::NSP::Measures::2D::CHI::x2 1.03
Text::NSP::Measures::2D::CHI::x2 is a Perl module that implements Pearsons chi squared measure of association for bigrams. more>>
Text::NSP::Measures::2D::CHI::x2 is a Perl module that implements Pearsons chi squared measure of association for bigrams.
SYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::CHI::x2;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$x2_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$x2_value."n"";
}
<<lessSYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::CHI::x2;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$x2_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$x2_value."n"";
}
Download (0.93MB)
Added: 2007-03-12 License: Perl Artistic License Price:
957 downloads
Text::NSP::Measures::2D::CHI::phi 1.03
Text::NSP::Measures::2D::CHI::phi is a Perl module that implements Phi coefficient measure for bigrams. more>>
Text::NSP::Measures::2D::CHI::phi is a Perl module that implements Phi coefficient measure for bigrams.
SYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::CHI::phi;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$phi_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$phi_value."n"";
}
<<lessSYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::CHI::phi;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$phi_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$phi_value."n"";
}
Download (0.93MB)
Added: 2007-03-12 License: Perl Artistic License Price:
956 downloads
Text::NSP::Measures::2D::MI::ps 1.03
Text::NSP::Measures::2D::MI::ps is a Perl module that implements Poisson-Stirling measure of association for bigrams. more>>
Text::NSP::Measures::2D::MI::ps is a Perl module that implements Poisson-Stirling measure of association for bigrams.
SYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::ps;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$ps_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".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 > and < word2 > were independent. The higher the score, the less evidence there is in favor of concluding that the words are independent.
Assume that the frequency count data associated with a bigram < word1 >< word2 > as shown by a 2x2 contingency table:
word2 ~word2
word1 n11 n12 | n1p
~word1 n21 n22 | n2p
--------------
np1 np2 npp
where n11 is the number of times < word1 >< word2 > occur together, and n12 is the number of times < word1 > occurs with some word other than word2, and n1p is the number of times in total that word1 occurs as the first word in a bigram.
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:
np1 * n1p
m11= ---------
npp
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.
Posson-Stirling = n11 * ( log(n11) - log(m11) - 1)
which is same as
Posson-Stirling = n11 * ( log(n11/m11) - 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 bigram.
getStatisticName() - Returns the name of this statistic
INPUT PARAMS : none
RETURN VALUES : $name .. Name of the measure.
<<lessSYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::ps;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$ps_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".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 > and < word2 > were independent. The higher the score, the less evidence there is in favor of concluding that the words are independent.
Assume that the frequency count data associated with a bigram < word1 >< word2 > as shown by a 2x2 contingency table:
word2 ~word2
word1 n11 n12 | n1p
~word1 n21 n22 | n2p
--------------
np1 np2 npp
where n11 is the number of times < word1 >< word2 > occur together, and n12 is the number of times < word1 > occurs with some word other than word2, and n1p is the number of times in total that word1 occurs as the first word in a bigram.
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:
np1 * n1p
m11= ---------
npp
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.
Posson-Stirling = n11 * ( log(n11) - log(m11) - 1)
which is same as
Posson-Stirling = n11 * ( log(n11/m11) - 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 bigram.
getStatisticName() - Returns the name of this statistic
INPUT PARAMS : none
RETURN VALUES : $name .. Name of the measure.
Download (0.93MB)
Added: 2007-03-15 License: GPL (GNU General Public License) Price:
953 downloads
Text::NSP::Measures::2D::MI::tmi 1.03
Text::NSP::Measures::2D::MI::tmi is a Perl module that implements True Mutual Information. more>>
Text::NSP::Measures::2D::MI::tmi is a Perl module that implements True Mutual Information.
SYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::tmi;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$tmi_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$tmi_value."n"";
}
Assume that the frequency count data associated with a bigram < word1 >< word2 > is stored in a 2x2 contingency table:
word2 ~word2
word1 n11 n12 | n1p
~word1 n21 n22 | n2p
--------------
np1 np2 npp
where n11 is the number of times < word1 >< word2 > occur together, and n12 is the number of times < word1 > occurs with some word other than word2, and n1p is the number of times in total that word1 occurs as the first word in a bigram.
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:
np1 * n1p
m11= ---------
npp
True Mutual Information (tmi) is defined as the weighted average of the pointwise mutual informations for all the observed and expected value pairs.
tmi = [n11/npp * log(n11/m11) + n12/npp * log(n12/m12) +
n21/npp * log(n21/m21) + n22/npp * log(n22/m22)]
PMI = log (n11/m11)
Methods
calculateStatistic() - This method calculates the tmi value
INPUT PARAMS : $count_values .. Reference of an hash containing the count values computed by the count.pl program.
RETURN VALUES : $tmi .. TMI value for this bigram.
getStatisticName() - Returns the name of this statistic
INPUT PARAMS : none
RETURN VALUES : $name .. Name of the measure.
<<lessSYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::MI::tmi;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$tmi_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$tmi_value."n"";
}
Assume that the frequency count data associated with a bigram < word1 >< word2 > is stored in a 2x2 contingency table:
word2 ~word2
word1 n11 n12 | n1p
~word1 n21 n22 | n2p
--------------
np1 np2 npp
where n11 is the number of times < word1 >< word2 > occur together, and n12 is the number of times < word1 > occurs with some word other than word2, and n1p is the number of times in total that word1 occurs as the first word in a bigram.
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:
np1 * n1p
m11= ---------
npp
True Mutual Information (tmi) is defined as the weighted average of the pointwise mutual informations for all the observed and expected value pairs.
tmi = [n11/npp * log(n11/m11) + n12/npp * log(n12/m12) +
n21/npp * log(n21/m21) + n22/npp * log(n22/m22)]
PMI = log (n11/m11)
Methods
calculateStatistic() - This method calculates the tmi value
INPUT PARAMS : $count_values .. Reference of an hash containing the count values computed by the count.pl program.
RETURN VALUES : $tmi .. TMI value for this bigram.
getStatisticName() - Returns the name of this statistic
INPUT PARAMS : none
RETURN VALUES : $name .. Name of the measure.
Download (0.93MB)
Added: 2007-03-13 License: Perl Artistic License Price:
955 downloads
Text::NSP::Measures::2D::Fisher::left 1.03
Text::NSP::Measures::2D::Fisher::left is a Perl module implementation of the left sided Fishers exact test. more>>
Text::NSP::Measures::2D::Fisher::left is a Perl module implementation of the left sided Fishers exact test.
SYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::Fisher::left;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$left_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage();
}
else
{
print getStatisticName."value for bigram is ".$left_value;
}
<<lessSYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::Fisher::left;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$left_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage();
}
else
{
print getStatisticName."value for bigram is ".$left_value;
}
Download (0.93MB)
Added: 2007-03-12 License: Perl Artistic License Price:
956 downloads
Text::NSP::Measures::2D::Dice::dice 1.03
Text::NSP::Measures::2D::Dice::dice is a Perl module to compute Dice coefficient for bigrams. more>>
Text::NSP::Measures::2D::Dice::dice is a Perl module to compute Dice coefficient for bigrams.
SYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::Dice::dice;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$dice_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$dice_value."n"";
}
Assume that the frequency count data associated with a bigram is stored in a 2x2 contingency table:
word2 ~word2
word1 n11 n12 | n1p
~word1 n21 n22 | n2p
--------------
np1 np2 npp
where n11 is the number of times < word1 >< word2 > occur together, and n12 is the number of times < word1 > occurs with some word other than word2, and n1p is the number of times in total that word1 occurs as the first word in a bigram.
The Dice Coefficient is defined as :
2 * n11
---------
np1 + n1p
The Jaccard coefficient can also be computed by applying a transformation to the dice coefficient:
$jaccard = $dice/(2-$dice)
Methods
calculateStatistic() - method to calculate the dice coefficient value
INPUT PARAMS : $count_values .. Reference of an hash containing the count values computed by the count.pl program.
RETURN VALUES : $dice .. Dice Coefficient value for this bigram.
getStatisticName() - Returns the name of this statistic
INPUT PARAMS : none
RETURN VALUES : $name .. Name of the measure.
<<lessSYNOPSIS
Basic Usage
use Text::NSP::Measures::2D::Dice::dice;
my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;
$dice_value = calculateStatistic( n11=>$n11,
n1p=>$n1p,
np1=>$np1,
npp=>$npp);
if( ($errorCode = getErrorCode()))
{
print STDERR $errorCode." - ".getErrorMessage()."n"";
}
else
{
print getStatisticName."value for bigram is ".$dice_value."n"";
}
Assume that the frequency count data associated with a bigram is stored in a 2x2 contingency table:
word2 ~word2
word1 n11 n12 | n1p
~word1 n21 n22 | n2p
--------------
np1 np2 npp
where n11 is the number of times < word1 >< word2 > occur together, and n12 is the number of times < word1 > occurs with some word other than word2, and n1p is the number of times in total that word1 occurs as the first word in a bigram.
The Dice Coefficient is defined as :
2 * n11
---------
np1 + n1p
The Jaccard coefficient can also be computed by applying a transformation to the dice coefficient:
$jaccard = $dice/(2-$dice)
Methods
calculateStatistic() - method to calculate the dice coefficient value
INPUT PARAMS : $count_values .. Reference of an hash containing the count values computed by the count.pl program.
RETURN VALUES : $dice .. Dice Coefficient value for this bigram.
getStatisticName() - Returns the name of this statistic
INPUT PARAMS : none
RETURN VALUES : $name .. Name of the measure.
Download (0.93MB)
Added: 2007-03-16 License: GPL (GNU General Public License) Price:
954 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above 2d search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed