Class DefaultDataSet

    • Constructor Detail

      • DefaultDataSet

        public DefaultDataSet​(java.lang.String name)
        Creates a new instance of DefaultDataSet.
        Parameters:
        name - name of this DataSet.
        Throws:
        java.lang.IllegalArgumentException - if name is null
      • DefaultDataSet

        public DefaultDataSet​(DataSet another)
        Creates a new instance of DefaultDataSet as copy of another (deep-copy).
        Parameters:
        another - name of this DataSet.
      • DefaultDataSet

        public DefaultDataSet​(java.lang.String name,
                              int initalSize)
        Creates a new instance of DefaultDataSet.
        Parameters:
        name - name of this DataSet.
        initalSize - initial buffer size
        Throws:
        java.lang.IllegalArgumentException - if name is null
      • DefaultDataSet

        public DefaultDataSet​(java.lang.String name,
                              double[] xValues,
                              double[] yValues,
                              int initalSize,
                              boolean deepCopy)

        Creates a new instance of DefaultDataSet.

        The user than specify via the copy parameter, whether the dataset operates directly on the input arrays themselves or on a copies of the input arrays. If the dataset operates directly on the input arrays, these arrays must not be modified outside of this data set.
        Parameters:
        name - name of this data set.
        xValues - X coordinates
        yValues - Y coordinates
        initalSize - initial buffer size
        deepCopy - if true, the input array is copied
        Throws:
        java.lang.IllegalArgumentException - if any of parameters is null or if arrays with coordinates have different lengths