Example usage for com.google.common.primitives Doubles concat

List of usage examples for com.google.common.primitives Doubles concat

Introduction

In this page you can find the example usage for com.google.common.primitives Doubles concat.

Prototype

public static double[] concat(double[]... arrays) 

Source Link

Document

Returns the values from each provided array combined into a single array.

Usage

From source file:org.apache.samoa.core.DoubleVector.java

public double[] getArrayCopy() {
    return Doubles.concat(this.doubleArray);
}

From source file:ec.ui.grid.MultiTsGridData.java

@Override
public DescriptiveStatistics get() {
    if (stats == null) {
        double[][] allValues = new double[dataTable.getSeriesCount()][];
        for (int i = 0; i < allValues.length; i++) {
            TsData data = dataTable.series(i);
            allValues[i] = data != null ? data.getValues().internalStorage() : new double[0];
        }/*from  w  w  w . j  a  v  a2  s . co  m*/
        stats = new DescriptiveStatistics(Doubles.concat(allValues));
    }
    return stats;
}