[
https://issues.apache.org/jira/browse/MAHOUT-653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017116#comment-13017116
]
Sean Owen commented on MAHOUT-653:
----------------------------------
This is used wherever jobs take in a DistanceMeasure class name and instantiate
it by reflection. Look at KmeansClusterMapper for instance. A setter could be
fine, but then there's not a way to feed a fast-approximation version into any
of the code that would use it. It needs a subclass... which feels ugly indeed.
I would remove the log method if it's not used and is too approximate.
> 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: 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