[Spambayes] Chi-squared perl port problems

Skip Montanaro skip@pobox.com
Thu Nov 7 14:42:08 2002



    Matt> OK, I've tried to convert your chi-squared stuff to Perl, but for
    Matt> some reason it's producing bizarre results. 

I think

          $S = log($S) + $Sexp + LN2;
          $H = log($H) + $Hexp + LN2;

should be

          $S = log($S) + $Sexp * LN2;
          $H = log($H) + $Hexp * LN2;

Skip



More information about the Spambayes mailing list