[
https://issues.apache.org/jira/browse/MAHOUT-653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018039#comment-13018039
]
Ted Dunning commented on MAHOUT-653:
------------------------------------
The comment and the test are inconsistent:
{code}
if (exponent > 2.0)
throw new Exception("Approximations.pow(n) only valid where n < 1");
{code}
> 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