class CalculatedTimeSeries implements DoubleTimeSeries {

    @Override
    public double[] toArray() {
        DoubleBuffer buffer = DoubleBuffer.allocate(metadata.getIndex().getPointCount());
        fillBuffer(buffer, 0);
        return buffer.array();
    }

    public  CalculatedTimeSeries(String name, NodeCalc nodeCalc, TimeSeriesNameResolver resolver);
    public  CalculatedTimeSeries(String name, NodeCalc nodeCalc);

}