Class BaseHistogram

  • Direct Known Subclasses:
    Histogram

    public abstract class BaseHistogram
    extends Object
    • Constructor Detail

      • BaseHistogram

        public BaseHistogram()
    • Method Detail

      • getTitle

        public abstract String getTitle()
      • numPoints

        public abstract int numPoints()
      • getBinCounts

        public abstract int[] getBinCounts()
      • getBinLowerBounds

        public abstract double[] getBinLowerBounds()
      • getBinUpperBounds

        public abstract double[] getBinUpperBounds()
      • getBinMidValues

        public abstract double[] getBinMidValues()
      • toJson

        public String toJson()
        Returns:
        JSON representation of the curve
      • toYaml

        public String toYaml()
        Returns:
        YAML representation of the curve
      • fromJson

        public static <T extends BaseHistogram> T fromJson​(String json,
                                                           Class<T> curveClass)
        Type Parameters:
        T - Type
        Parameters:
        json - JSON representation
        curveClass - Class for the curve
        Returns:
        Instance of the curve
      • fromYaml

        public static <T extends BaseHistogram> T fromYaml​(String yaml,
                                                           Class<T> curveClass)
        Type Parameters:
        T - Type
        Parameters:
        yaml - YAML representation
        curveClass - Class for the curve
        Returns:
        Instance of the curve