Class Histogram.BinSpec

java.lang.Object
com.xinapse.image.Histogram.BinSpec
Enclosing class:
Histogram

public static class Histogram.BinSpec extends Object
A specification for Histogram bins. Immutable so that all fields can be public.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    The bin width.
    final double
    The maximum histogram value for the last bin.
    final double
    The minimun histogram value for the first bin.
    final int
    The number of bins.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a String showing the minimum bin value, the number of bins and the bin width.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • min

      public final double min
      The minimun histogram value for the first bin.
    • nBins

      public final int nBins
      The number of bins.
    • binWidth

      public final double binWidth
      The bin width.
    • max

      public final double max
      The maximum histogram value for the last bin.
  • Method Details

    • toString

      public String toString()
      Returns a String showing the minimum bin value, the number of bins and the bin width.
      Overrides:
      toString in class Object
      Returns:
      a String describing the BinSpec.