[ 
https://issues.apache.org/jira/browse/STATISTICS-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Herbert updated STATISTICS-89:
-----------------------------------
    Attachment: array.png

> Benchmark statistic generation time using array input
> -----------------------------------------------------
>
>                 Key: STATISTICS-89
>                 URL: https://issues.apache.org/jira/browse/STATISTICS-89
>             Project: Commons Statistics
>          Issue Type: Task
>          Components: descriptive
>            Reporter: Alex Herbert
>            Priority: Minor
>         Attachments: array.png
>
>
> Update the JMH benchmark for creation of a statistic from an array to support 
> the current implementations. (Note: At present the benchmark uses a simple 
> sum implementation to test different loop/stream methods.)
> Investigate the performance of creation of statistics from a sub-range of an 
> array. Currently this is not possible and requires a copy of the sub-range, 
> e.g. to get the mean of the last half of an array:
> {code:java}
> double[] x = ...
> int from = x.length >> 1;
> int to = x.length;
> Mean m = Mean.of(Arrays.copyOfRange(x, from, to))
> {code}



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

Reply via email to