[
https://issues.apache.org/jira/browse/STATISTICS-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16854144#comment-16854144
]
Gilles commented on STATISTICS-14:
----------------------------------
On the ML, I had asked the following:
# Use-cases for this class.
# Why it doesn't exist in the JDK since, as you point out, the functionality
does exist for other number types?
Personally, I'm wary to pile up code just because it can be written.
I do not favour the POV that this component should contain all things that
could have been in the JDK but are not. I rather think that it should contain
what most Java developers would expect when they turn to a library named
"Statistics". As for "Commons Math", {{double}} should indeed be the focus of
attention.
A separate maven module would reflect that users interested in analyzing data
series indeed do not need to depend on tools that deal with {{BigDecimal}}.
IMHO, the priority for this component would be to fix what has been shown
problematic in "Commons Math" (a.o. create a modular design) while maximizing
usability and performance. As you pointed out elsewhere (IIRC), it is not a
particular good perspective to compute more than the user has requested.
Although computing several quantities together could allow for better
performance (when all those quantities are requested by the user).
> BigDecimalStatistics
> --------------------
>
> Key: STATISTICS-14
> URL: https://issues.apache.org/jira/browse/STATISTICS-14
> Project: Apache Commons Statistics
> Issue Type: New Feature
> Reporter: Aleksander Ściborek
> Priority: Major
>
> The idea is to create a util class for reducing stream of BigDecimal objects
> and then getting an object which contains statistics such as
> 1)Min and max value
> 2)Average
> 3)Total sum
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)