public void setYVal(Double[] newYVal) {
        if (newYVal == null) {
            this.yVal = new Double[0];
        } else {
            this.yVal = Arrays.copyOf(newYVal, newYVal.length);
        }
    }