@Test public void testClearObservations() { SimpleHistogramDataset d1 = new SimpleHistogramDataset("D1"); d1.clearObservations(); assertEquals(0, d1.getItemCount(0)); d1.addBin(new SimpleHistogramBin(0.0, 1.0)); d1.addObservation(0.5); assertEquals(1.0, d1.getYValue(0, 0), EPSILON); }
public void clearObservations() { for (SimpleHistogramBin bin : this.bins) { bin.setItemCount(0); } notifyListeners(new DatasetChangeEvent(this, this)); }
SimpleHistogramDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, Cloneable, PublicCloneable,
            Serializable { public void clearObservations() { for (SimpleHistogramBin bin : this.bins) { bin.setItemCount(0); } notifyListeners(new DatasetChangeEvent(this, this)); } }
SimpleHistogramDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, Cloneable, PublicCloneable,
            Serializable { public void clearObservations() { for (SimpleHistogramBin bin : this.bins) { bin.setItemCount(0); } notifyListeners(new DatasetChangeEvent(this, this)); } SimpleHistogramDataset(Comparable key); }
SimpleHistogramDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, Cloneable, PublicCloneable,
            Serializable { public void clearObservations() { for (SimpleHistogramBin bin : this.bins) { bin.setItemCount(0); } notifyListeners(new DatasetChangeEvent(this, this)); } SimpleHistogramDataset(Comparable key); boolean getAdjustForBinSize(); void setAdjustForBinSize(boolean adjust); @Override int getSeriesCount(); @Override Comparable getSeriesKey(int series); @Override DomainOrder getDomainOrder(); @Override int getItemCount(int series); void addBin(SimpleHistogramBin bin); void addObservation(double value); void addObservation(double value, boolean notify); void addObservations(double[] values); void clearObservations(); void removeAllBins(); @Override Number getX(int series, int item); @Override double getXValue(int series, int item); @Override Number getY(int series, int item); @Override double getYValue(int series, int item); @Override Number getStartX(int series, int item); @Override double getStartXValue(int series, int item); @Override Number getEndX(int series, int item); @Override double getEndXValue(int series, int item); @Override Number getStartY(int series, int item); @Override double getStartYValue(int series, int item); @Override Number getEndY(int series, int item); @Override double getEndYValue(int series, int item); @Override boolean equals(Object obj); @Override Object clone(); }
SimpleHistogramDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, Cloneable, PublicCloneable,
            Serializable { public void clearObservations() { for (SimpleHistogramBin bin : this.bins) { bin.setItemCount(0); } notifyListeners(new DatasetChangeEvent(this, this)); } SimpleHistogramDataset(Comparable key); boolean getAdjustForBinSize(); void setAdjustForBinSize(boolean adjust); @Override int getSeriesCount(); @Override Comparable getSeriesKey(int series); @Override DomainOrder getDomainOrder(); @Override int getItemCount(int series); void addBin(SimpleHistogramBin bin); void addObservation(double value); void addObservation(double value, boolean notify); void addObservations(double[] values); void clearObservations(); void removeAllBins(); @Override Number getX(int series, int item); @Override double getXValue(int series, int item); @Override Number getY(int series, int item); @Override double getYValue(int series, int item); @Override Number getStartX(int series, int item); @Override double getStartXValue(int series, int item); @Override Number getEndX(int series, int item); @Override double getEndXValue(int series, int item); @Override Number getStartY(int series, int item); @Override double getStartYValue(int series, int item); @Override Number getEndY(int series, int item); @Override double getEndYValue(int series, int item); @Override boolean equals(Object obj); @Override Object clone();  }