@ javax . annotation . Nonnull public static com . simiacryptus . util . data . ScalarStatistics stats ( @ javax . annotation . Nonnull final double [ ] data ) { @ javax . annotation . Nonnull final com . simiacryptus . util . data . ScalarStatistics statistics = new PercentileStatistics ( ) ; Arrays . stream ( data ) . forEach ( statistics :: add ) ; return statistics ; }
Stats scalar statistics .