Menu

LogMath and choice of log base

2014-07-09
2014-07-11
  • Jeff Acquaviva

    Jeff Acquaviva - 2014-07-09

    Hi,

    I'm reading through the LogMath library trying to better understand exactly what it does.
    I was wondering if you could explain the reasoning for choosing a base of 1.0001 or 1.0003. I'm having a hard time undersatading the comment's explanation of this choice of base. Were these numbers found experimentally to give the best 'resolution'?

     
  • Nickolay V. Shmyrev

    Were these numbers found experimentally to give the best 'resolution'?

    Yes, in sphinx3 it's important for the scores to fit 4 bytes integer so you need to balance between resolution and value range.

    In sphinx4 logmath is actually not needed at all since it uses floating point.

     
  • Jeff Acquaviva

    Jeff Acquaviva - 2014-07-10

    In sphinx4 logmath is actually not needed at all since it uses floating point.

    Do you mean that computation does not need to be done in the log domain or that the LogMath java class is not needed?

     
  • Nickolay V. Shmyrev

    computation does not need to be done in the log domain

    Computation must be done in log domain but it can use natural log base, not 1.0001, so LogMath class is not really needed.

     

Log in to post a comment.