Hello. Le ven. 17 mai 2019 à 14:40, Aleksander Ściborek <aleksanderscibo...@gmail.com> a écrit : > > Hi, I don't know why there is not such a class in JDK. Maybe because > BigDecimal and BigInteger are objects not primitives therefore they can > have null value.
How is the "null" consideration related to the functionality of performing an average, and other operations? > I believe that that package Which "package"? > should contains BigDecimalStatistics, > BigIntegerStatistics and tools for downstreams collectors in order to > performe some downstream operations like averagingInt in JDK. How will a user get e.g. the variance too? Regards, Gilles > I've already started implementing BigDecimalStatistics on my fork but I > haven't pushed those changes on my fork > > > On Fri, 17 May 2019 at 14:19, Gilles Sadowski <gillese...@gmail.com> wrote: > > > Hello. > > > > Le ven. 17 mai 2019 à 12:14, Aleksander Ściborek > > <aleksanderscibo...@gmail.com> a écrit : > > > > > > Hi, > > > Right now I'm going to minic IntSummaryStatistics. Orginal idea had been > > to > > > create a BigDecimalAverager just for calculate an average in functional > > > style, but after I saw IntSummaryStatistics from JDK i deciced to exdends > > > functionality. > > > > I'm wary of dropping this in "Commons Statistics" without a broader view > > of the design of a package where it would perhaps fit with similar > > functionality > > for other number types. > > Could the class be generic? If so, what would be the API required to > > perform > > the operations? "Commons Numbers" has some suggestions[1][2]; those can, > > and should, be adapted to actual use-cases, such as "streams" (preferably > > before the first release). > > > > It would perhaps be helpful to know why there is no "BigDecimalStatistics" > > in > > the JDK. > > > > Regards, > > Gilles --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org