Class RegressionDataset

    • Method Detail

      • getRegression

        public IsRegression getRegression()
        Returns the regression instance, applied to the dataset.
        Returns:
        the regression instance, applied to the dataset
      • addX

        public void addX​(int amount)
        Adds Y values to the dataset, using the amount of X values.
        X values are creating starting from 0 with increment of 1.
        Parameters:
        amount - amount of X and Y values to add
      • addX

        public void addX​(int amount,
                         double starting)
        Adds Y values to the dataset, using the amount of X values.
        X values are creating starting from passed starting point with increment of 1.
        Parameters:
        amount - amount of X and Y values to add
        starting - starting value to create X values
      • addX

        public void addX​(int amount,
                         double starting,
                         double increment)
        Adds Y values to the dataset, using the amount of X values.
        X values are creating starting from passed argument with increment of passed argument.
        Parameters:
        amount - amount of X and Y values to add
        starting - starting value to create X values
        increment - increment to apply to the starting value
      • addXValues

        public void addXValues​(double... values)
        Adds Y values to the dataset, using the passed X values.
        Parameters:
        values - X values to add to dataset
      • addXValues

        public void addXValues​(List<Double> values)
        Adds Y values to the dataset, using the passed X values.
        Parameters:
        values - X values to add to dataset
      • addXDates

        public void addXDates​(Date... values)
        Adds Y values to the dataset, using the passed X values.
        Parameters:
        values - X values to add to dataset
      • addXDates

        public void addXDates​(List<Date> values)
        Adds Y values to the dataset, using the passed X values.
        Parameters:
        values - X values to add to dataset
      • setOrder

        public default void setOrder​(int order)
        Sets the drawing order of dataset.
        Also affects order for stacking, tooltip, and legend.
        Parameters:
        order - the drawing order of dataset.
      • getOrder

        public default int getOrder()
        Returns the drawing order of dataset.
        Also affects order for stacking, tooltip, and legend.
        Returns:
        the drawing order of dataset
      • setPointStyle

        public default void setPointStyle​(PointStyle... pointStyle)
        Sets the style of the point.
        Parameters:
        pointStyle - array of the style of the point.
      • getPointStyle

        public default List<PointStyle> getPointStyle()
        Returns the style of the point.
        Returns:
        the style of the point or null if point style is set as image
      • setPointStyle

        public default void setPointStyle​(Img... pointStyle)
        Sets the style of the point as image.
        Parameters:
        pointStyle - image element of the style of the point as image.
      • getPointStyleType

        public default PointStyleType getPointStyleType()
        Returns the type of point style.
        Returns:
        the type of point style
      • getPointStyleAsImages

        public default List<Img> getPointStyleAsImages()
        Returns the style of the point as image.
        If property is missing or not an image, returns null.
        Returns:
        image of the style of the point as image.
        If property is missing or not a image, returns null.
      • setPointStyle

        public default void setPointStyle​(Canvas... pointStyle)
        Sets the style of the point as canvas.
        Parameters:
        pointStyle - canvas element of the style of the point as canvas.
      • getPointStyleAsCanvas

        public default List<Canvas> getPointStyleAsCanvas()
        Returns the style of the point as canvas.
        If property is missing or not an canvas, returns null.
        Returns:
        image of the style of the point as canvas.
        If property is missing or not a canvas, returns null.
      • getPointStyleCallback

        public default PointStyleCallback<DatasetContext> getPointStyleCallback()
        Returns the point style callback, if set, otherwise null.
        Returns:
        the point style callback, if set, otherwise null.
      • setPointStyle

        public default void setPointStyle​(PointStyleCallback<DatasetContext> pointStyleCallback)
        Sets the point style callback.
        Parameters:
        pointStyleCallback - the point style callback.