Alex Herbert created STATISTICS-89:
--------------------------------------

             Summary: 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


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