/** * Constructor. * @param data a sample set. * @param breaks an array of size k+1 giving the breakpoints between * histogram cells. Must be in ascending order. * @param prob if true, the y-axis will be in the probability scale. * Otherwise, y-axis will be in the frequency scale. */ public Histogram(int[] data, double[] breaks, boolean prob) { super(histogram(data, breaks, prob)); this.prob = prob; }
/** * Constructor. * @param data a sample set. * @param k the number of bins. * @param prob if true, the y-axis will be in the probability scale. * Otherwise, y-axis will be in the frequency scale. */ public Histogram(double[] data, int k, boolean prob) { super(histogram(data, k, prob)); this.prob = prob; }
/** * Constructor. * @param data a sample set. * @param k the number of bins. * @param prob if true, the y-axis will be in the probability scale. * Otherwise, y-axis will be in the frequency scale. */ public Histogram(int[] data, int k, boolean prob) { super(histogram(data, k, prob)); this.prob = prob; }
/** * Constructor. * @param data a sample set. * @param breaks an array of size k+1 giving the breakpoints between * histogram cells. Must be in ascending order. * @param prob if true, the y-axis will be in the probability scale. * Otherwise, y-axis will be in the frequency scale. */ public Histogram(double[] data, double[] breaks, boolean prob) { super(histogram(data, breaks, prob)); this.prob = prob; }