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

Gilles Sadowski commented on STATISTICS-90:
-------------------------------------------

Wouldn't the ambiguous call be caught as an error by the compiler?
Or will it consider "0" and "1" as {{int}}?

> Support statistic creation using an array range
> -----------------------------------------------
>
>                 Key: STATISTICS-90
>                 URL: https://issues.apache.org/jira/browse/STATISTICS-90
>             Project: Commons Statistics
>          Issue Type: New Feature
>          Components: descriptive
>    Affects Versions: 1.1
>            Reporter: Alex Herbert
>            Priority: Minor
>             Fix For: 1.2
>
>
> Add support for using part of an array to create statistics:
> {code:java}
> double[] x = ...
> int from = ...
> int to = ...
> Min.ofRange(x, from, to);
> DoubleStatistics.ofRange(EnumSet.of(Statistic.MIN), x, from, to);{code}
> This change should have no impact on performance for full length arrays and 
> improve memory consumption by avoiding array copies on sub-ranges. Results 
> from STATISTICS-89 indicate a non-negligible performance gain for fast 
> computing statistics.
> Note: Support for sub-ranges is present in the Commons Math 
> UnivariateStatistic interface. This change will allow supporting replacement 
> of the Math API with Statistics.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to