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

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

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

origin: ca.umontreal.iro/ssj

/**
* Returns the y-value for a bin (calculated to take into account the
* histogram type).
*
* @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 y-value.
*
* @throws IndexOutOfBoundsException if <code>series</code> is outside the
*     specified range.
*/
public Number getY(int series, int item)
{
 List bins = getBins(series);
 HistogramBin bin = (HistogramBin)bins.get(item);
 double total = getTotal(series);
 double binWidth = getBinWidth(series);
 if (type == HistogramType.FREQUENCY)
   return new Double(bin.getCount());
 if (type == HistogramType.RELATIVE_FREQUENCY)
   return new Double((double)bin.getCount() / total);
 if (type == HistogramType.SCALE_AREA_TO_1)
   return new Double((double)bin.getCount() / (binWidth * total));
 else
   throw new IllegalStateException();
}
origin: jfree/jfreechart

return new Double(bin.getCount());
return new Double(bin.getCount() / total);
return new Double(bin.getCount() / (binWidth * total));
origin: org.codehaus.jtstand/jtstand-chart

return new Double(bin.getCount());
return new Double(bin.getCount() / total);
return new Double(bin.getCount() / (binWidth * total));
origin: ca.umontreal.iro/ssj

currentMargin = ((margin*(currentBin.getEndBoundary()-currentBin.getStartBoundary())))*XScale;
if ((currentBin.getStartBoundary() >= xmin && currentBin.getStartBoundary() <= xmax)
  && (currentBin.getCount() >= ymin && currentBin.getCount() <= ymax) )
      lineWidth[i], (color.getAlpha()/255.0), colorString,
      currentMargin, (currentBin.getStartBoundary()-XShift)*XScale, 0.0,
      currentMargin, (var-XShift)*XScale, (currentBin.getCount()-YShift)*YScale);
      lineWidth[i], colorString,
      currentMargin, (currentBin.getStartBoundary()-XShift)*XScale, 0.0,
      currentMargin, (var-XShift)*XScale, (currentBin.getCount()-YShift)*YScale);
      && (currentBin.getCount() >= ymin && currentBin.getCount() > ymax) )
org.jfree.data.statisticsHistogramBingetCount

Javadoc

Returns the number of items in the bin.

Popular methods of HistogramBin

  • <init>
    Creates a new bin.
  • getEndBoundary
    Returns the end boundary.
  • getStartBoundary
    Returns the start boundary.
  • incrementCount
    Increments the item count.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best IntelliJ plugins
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