public Histogram toHistogram(final float[] breaks)
  {
    final double[] approximateBins = new double[breaks.length - 1];

    double prev = sum(breaks[0]);
    for (int i = 1; i < breaks.length; ++i) {
      double s = sum(breaks[i]);
      approximateBins[i - 1] = (float) (s - prev);
      prev = s;
    }

    return new Histogram(breaks, approximateBins);
  }
public Histogram toHistogram ( final float [ ] breaks ) { final double [ ] approximateBins = new double [ breaks . length - 1 ] ; double prev = sum ( breaks [ 0 ] ) ; for ( int i = 1 ; i < breaks . length ; ++ i ) { double s = sum ( breaks [ i ] ) ; approximateBins [ i - 1 ] = ( float ) ( s - prev ) ; prev = s ; } return new Histogram ( breaks , approximateBins ) ; }
Computes a visual representation of the approximate histogram with bins laid out according to the given breaks

@param breaks breaks defining the histogram bins

@return visual representation of the histogram