[Dynamite] Re: Score module

Ian Holmes ihh@fruitfly.org
Sun, 5 Mar 2000 19:52:03 -0800 (PST)


oops - it needs one quick edit

>     // fast math functions
> 
>     IntScore    prob_sum (IntScore i1, IntScore i2);    // == prob2ints (ints2prob(i1) + ints2prob(i2))
>     // implementation detail: should use a lookup table, to speed up the Forward algorithm

this should be:


    // fast math functions

    IntScore    ints_prob_sum (IntScore i1, IntScore i2);    // == prob2ints (ints2prob(i1) + ints2prob(i2))
    BitScore    bits_prob_sum (BitScore b1, BitScore b2);    // == prob2bits (bits2prob(b1) + bits2prob(b2))
    NatScore    nats_prob_sum (NatScore n1, NatScore n2);    // == prob2bits (nats2prob(n1) + nats2prob(n2))

    // implementation detail: should use a lookup table, to speed up the Forward algorithm
    // ...note -- can use the same lookup table for all three calls