class DoubleVertexSamples extends Samples<DoubleTensor> {

    public DoubleTensor getAutocorrelation(long... index) {
        TensorShapeValidation.checkIndexIsValid(sampleShape, index);
        long[] indexToGet = getCorrectIndexIfScalar(index);
        double[] sampleValuesAtIndex = samples.stream()
            .mapToDouble(x -> x.getValue(indexToGet))
            .toArray();
        double[] autocorr = Autocorrelation.calculate(sampleValuesAtIndex);
        return DoubleTensor.create(autocorr);
    }

    public  DoubleVertexSamples(List<DoubleTensor> samples);

}