Tabnine Logo
HistogramBin.getEndBoundary
Code IndexAdd Tabnine to your IDE (free)

How to use
getEndBoundary
method
in
org.jfree.data.statistics.HistogramBin

Best Java code snippets using org.jfree.data.statistics.HistogramBin.getEndBoundary (Showing top 9 results out of 315)

origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the end value for a bin.
 *
 * @param series  the series index (in the range <code>0</code> to
 *     <code>getSeriesCount() - 1</code>).
 * @param item  the item index (zero based).
 *
 * @return The end value.
 *
 * @throws IndexOutOfBoundsException if <code>series</code> is outside the
 *     specified range.
 */
public Number getEndX(int series, int item) {
  List bins = getBins(series);
  HistogramBin bin = (HistogramBin) bins.get(item);
  return new Double(bin.getEndBoundary());
}
origin: jfree/jfreechart

/**
 * Returns the end value for a bin.
 *
 * @param series  the series index (in the range {@code 0} to
 *     {@code getSeriesCount() - 1}).
 * @param item  the item index (zero based).
 *
 * @return The end value.
 *
 * @throws IndexOutOfBoundsException if {@code series} is outside the
 *     specified range.
 */
@Override
public Number getEndX(int series, int item) {
  List bins = getBins(series);
  HistogramBin bin = (HistogramBin) bins.get(item);
  return new Double(bin.getEndBoundary());
}
origin: ca.umontreal.iro/ssj

/**
* Returns the end value for a bin.
*
* @param series  the series index (in the range <code>0</code> to
*     <code>getSeriesCount() - 1</code>).
* @param item  the item index (zero based).
*
* @return The end value.
*
* @throws IndexOutOfBoundsException if <code>series</code> is outside the
*     specified range.
*/
public Number getEndX(int series, int item)
{
 List bins = getBins(series);
 HistogramBin bin = (HistogramBin)bins.get(item);
 return new Double(bin.getEndBoundary());
}
origin: jfree/jfreechart

/**
 * Returns the X value for a bin.  This value won't be used for plotting
 * histograms, since the renderer will ignore it.  But other renderers can
 * use it (for example, you could use the dataset to create a line
 * chart).
 *
 * @param series  the series index (in the range {@code 0} to
 *     {@code getSeriesCount() - 1}).
 * @param item  the item index (zero based).
 *
 * @return The start value.
 *
 * @throws IndexOutOfBoundsException if {@code series} is outside the
 *     specified range.
 */
@Override
public Number getX(int series, int item) {
  List bins = getBins(series);
  HistogramBin bin = (HistogramBin) bins.get(item);
  double x = (bin.getStartBoundary() + bin.getEndBoundary()) / 2.;
  return new Double(x);
}
origin: ca.umontreal.iro/ssj

/**
* Returns the X value for a bin.  This value won't be used for plotting
* histograms, since the renderer will ignore it.  But other renderers can
* use it (for example, you could use the dataset to create a line
* chart).
*
* @param series  the series index (in the range <code>0</code> to
*     <code>getSeriesCount() - 1</code>).
* @param item  the item index (zero based).
*
* @return The start value.
*
* @throws IndexOutOfBoundsException if <code>series</code> is outside the
*     specified range.
*/
public Number getX(int series, int item)
{
 List bins = getBins(series);
 HistogramBin bin = (HistogramBin)bins.get(item);
 double x = (bin.getStartBoundary() + bin.getEndBoundary()) / 2D;
 return new Double(x);
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the X value for a bin.  This value won't be used for plotting
 * histograms, since the renderer will ignore it.  But other renderers can
 * use it (for example, you could use the dataset to create a line
 * chart).
 *
 * @param series  the series index (in the range <code>0</code> to
 *     <code>getSeriesCount() - 1</code>).
 * @param item  the item index (zero based).
 *
 * @return The start value.
 *
 * @throws IndexOutOfBoundsException if <code>series</code> is outside the
 *     specified range.
 */
public Number getX(int series, int item) {
  List bins = getBins(series);
  HistogramBin bin = (HistogramBin) bins.get(item);
  double x = (bin.getStartBoundary() + bin.getEndBoundary()) / 2.;
  return new Double(x);
}
origin: ca.umontreal.iro/ssj

/**
* Synchronize values to bins. Compute bins values.
*
* @param bins   List of bins.
* @param values List of values.
*/
private void synchronizeValuesAndBins(List bins, List values)
{
 ListIterator iterBins = bins.listIterator(0);
 ListIterator iterValues = values.listIterator();
 HistogramBin bin;
 for (; iterBins.hasNext(); iterBins.set(
    new HistogramBin(bin.getStartBoundary(), bin.getEndBoundary())))
   bin = (HistogramBin)iterBins.next();
 iterBins = bins.listIterator(0);
 while (iterValues.hasNext()) {
   double currentValue = ((Double)iterValues.next()).doubleValue();
   boolean continu = true;
   iterBins = bins.listIterator(0);
   while (continu && iterBins.hasNext()) {
    HistogramBin tempBin = (HistogramBin)iterBins.next();
    if (currentValue >= tempBin.getStartBoundary() &&
      currentValue <  tempBin.getEndBoundary()) {
      tempBin.incrementCount();
      continu = false;
    }
   }
 }
}
origin: ca.umontreal.iro/ssj

double currentMargin;
currentBin = (HistogramBin)iter.next();
currentMargin = ((margin*(currentBin.getEndBoundary()-currentBin.getStartBoundary())))*XScale;
if ((currentBin.getStartBoundary() >= xmin && currentBin.getStartBoundary() <= xmax)
  && (currentBin.getCount() >= ymin && currentBin.getCount() <= ymax) )
  var = Math.min( currentBin.getEndBoundary(), xmax);
  if (filled[i]) {
   formatter.format("\\filldraw [line width=%.2fpt, opacity=%.2f, color=%s] ([xshift=%.4f] %.4f, %.4f) rectangle ([xshift=-%.4f] %.4f, %.4f); %%%n",
      && (currentBin.getCount() >= ymin && currentBin.getCount() > ymax) )
  var = Math.min( currentBin.getEndBoundary(), xmax);
  if (filled[i]) {
   formatter.format("\\filldraw [line width=%.2fpt,  opacity=%.2f, color=%s] ([xshift=%.4f] %.4f, %.4f) rectangle ([xshift=-%.4f] %.4f, %.4f); %%%n",
origin: ca.umontreal.iro/ssj

double var;
newTicks.add(prec.getStartBoundary());
newTicks.add(var = prec.getEndBoundary());
HistogramBin temp;
while(binsIter.hasNext()) {
 if(temp.getStartBoundary() != var) {
   newTicks.add(var = temp.getStartBoundary());
 } else if(temp.getEndBoundary() != var) {
   newTicks.add(var = temp.getEndBoundary());
org.jfree.data.statisticsHistogramBingetEndBoundary

Javadoc

Returns the end boundary.

Popular methods of HistogramBin

  • <init>
    Creates a new bin.
  • getCount
    Returns the number of items in the bin.
  • getStartBoundary
    Returns the start boundary.
  • incrementCount
    Increments the item count.

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • Menu (java.awt)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now