o

com.cibo.evilplot.plot

Histogram

object Histogram

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Histogram
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class ContinuousBinPlotRenderer(bins: Seq[ContinuousBin], binRenderer: ContinuousBinRenderer, spacing: Double, boundBuffer: Double) extends PlotRenderer with Product with Serializable
  2. case class HistogramBinRenderer(binPoints: Seq[Point], binWidth: Double, barRenderer: BarRenderer, spacing: Double) extends PlotRenderer with Product with Serializable

    this render assumes the binning of the data has already been applied; i.e in cases where the plot ranges need to be pre-calculated

    this render assumes the binning of the data has already been applied; i.e in cases where the plot ranges need to be pre-calculated

    binPoints

    each point x:left edge y:count of total

  3. case class HistogramRenderer(data: Seq[Double], barRenderer: BarRenderer, binCount: Int, spacing: Double, boundBuffer: Double, binningFunction: (Seq[Double], Bounds, Int) ⇒ Seq[Point]) extends PlotRenderer with Product with Serializable
    Annotations
    @deprecated
    Deprecated

    (Since version v0.6.1) Use HistogramBinRenderer instead to prevent double binning and separation of data and view bounds

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(values: Seq[Double], bins: Int = automaticBinCount, barRenderer: Option[BarRenderer] = None, spacing: Option[Double] = None, boundBuffer: Option[Double] = None, binningFunction: (Seq[Double], Bounds, Int) ⇒ Seq[Point] = createBins, xbounds: Option[Bounds] = None, ybounds: Option[Bounds] = None, color: Option[Color] = None, name: Option[String] = None)(implicit theme: Theme): Plot

    Create a histogram.

    Create a histogram.

    values

    The data.

    bins

    The number of bins to divide the data into.

    barRenderer

    The renderer to render bars for each bin.

    spacing

    The spacing between bars.

    boundBuffer

    Extra padding to place at the top of the plot.

    binningFunction

    A function taking the raw data, the x bounds, and a bin count that returns a sequence of points with x points representing left bin boundaries and y points representing bin heights

    xbounds

    optionally use an explicit xbounds instead of an automatic bounds

    color

    series name to use if using the default barRenderer

    returns

    A histogram plot.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  7. def createBins(values: Seq[Double], xbounds: Bounds, binCount: Int): Seq[Point]

    Create binCount bins from the given data and xbounds.

    Create binCount bins from the given data and xbounds.

    values

    the raw data

    xbounds

    the bounds over which to bin

    binCount

    the number of bins to create

    returns

    a sequence of points, where the x coordinates represent the left edge of the bins and the y coordinates represent their heights

  8. def cumulative(values: Seq[Double], xbounds: Bounds, binCount: Int): Seq[Point]

    Create binCount bins from the given data and xbounds, cumulatively such that each bin includes the data in all previous bins

  9. def cumulativeDensity(values: Seq[Double], xbounds: Bounds, binCount: Int): Seq[Point]

    Create binCount bins from the given data and xbounds, cumulatively such that each bin includes the data in all previous bins, and normalized so that bins approximate a CDF

  10. def defaultBinCount(nSamples: Int): Int

    auto select number of bins Note:Rice rule: 1k => 20bins (less decimating than Sturges)

  11. val defaultBinCount: Int
  12. def density(values: Seq[Double], xbounds: Bounds, binCount: Int): Seq[Point]

    Create binCount bins from the given data and xbounds, computing the bin heights such that they represent the average probability density over each bin interval

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def fromBins(bins: Seq[ContinuousBin], binRenderer: Option[ContinuousBinRenderer] = None, spacing: Option[Double] = None, boundBuffer: Option[Double] = None)(implicit theme: Theme): Plot
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def normalize(values: Seq[Double], xbounds: Bounds, binCount: Int): Seq[Point]

    Create binCount bins from the given data and xbounds, normalizing the heights such that their sum is 1

  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped