[ 
https://issues.apache.org/jira/browse/MAHOUT-653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018173#comment-13018173
 ] 

Lance Norskog commented on MAHOUT-653:
--------------------------------------

This is a usability trick: coders will try to stay on "the good side" of 1.0 
but may stray over the line a bit. Adding "slop barriers" allows that code to 
keep working, while still complaining when the coder completely blows it.

The approximations are about 3% wrong at 1.0 and drive towards exact as n moves 
away from 1.0. They are 4-5% wrong at the "slop barriers".




> Approximations to standard functions
> ------------------------------------
>
>                 Key: MAHOUT-653
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-653
>             Project: Mahout
>          Issue Type: New Feature
>            Reporter: Lance Norskog
>         Attachments: Approximations.java, MAHOUT-653.patch, MAHOUT-653.patch
>
>
> These give approximate versions of pow(value, exponent), exp(value), and 
> natural log(value).
> log() and exp() stolen from:
> [http://martin.ankerl.com/2007/02/11/optimized-exponential-functions-for-java/]
> pow() stolen from:
> [http://martin.ankerl.com/2007/10/04/optimized-pow-approximation-for-java-and-c-c/]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to