class Labeling[V <: Container[V] with Aggregation] extends Container[Labeling[V]] with AggregationOnData with Collection
Accumulating a collection of containers of the SAME type, labeled by strings.
Use the factory org.dianahep.histogrammar.Label to construct an instance.
- Alphabetic
- By Inheritance
- Labeling
- Collection
- AggregationOnData
- Aggregation
- Container
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Datum = V.Datum
Type of data expected by
fill
.Type of data expected by
fill
.- Definition Classes
- Labeling → Aggregation
- type EdType = Labeled[V.EdType]
The type of the immutable version of this container.
- type Type = Labeling[V]
Intended for the general user to copy a complex container's type into the
as
method of a container whose type is not known at compile-time.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *(factor: Double): Labeling[V]
Reweight the contents in all nested aggregators by a scalar factor, as though they had been filled with a different weight.
Reweight the contents in all nested aggregators by a scalar factor, as though they had been filled with a different weight.
If the container is mutable (with org.dianahep.histogrammar.Aggregation), the new one will be, too.
The original is unaffected.
- def +(that: Labeling[V]): Labeling[V]
Add two containers of the same type.
Add two containers of the same type.
If these containers are mutable (with org.dianahep.histogrammar.Aggregation), the new one will be, too.
The originals are unaffected.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(indexes: CollectionIndex*): Container[_]
Attempt to get key
indexes
, throwing an exception if it does not exist.Attempt to get key
indexes
, throwing an exception if it does not exist.- Definition Classes
- Labeling → Collection
- def apply(index: CollectionIndex): V
Attempt to get key
index
, throwing an exception if it does not exist. - def as[OTHER <: Container[OTHER]]: OTHER
Cast the container to a given type.
Cast the container to a given type. Especially useful for containers reconstructed from JSON or stored in org.dianahep.histogrammar.UntypedLabeling/org.dianahep.histogrammar.UntypedLabeled.
- Definition Classes
- Container
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkForCrossReferences(memo: Set[Aggregation] = mutable.Set[Aggregation]()): Unit
- Attributes
- protected
- Definition Classes
- Aggregation
- val checkedForCrossReferences: Boolean
List of sub-aggregators, to make it possible to walk the tree.
List of sub-aggregators, to make it possible to walk the tree.
- Attributes
- protected
- Definition Classes
- Aggregation
- def children: List[V]
List of sub-aggregators, to make it possible to walk the tree.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def copy: Labeling[V]
Copy this container, making a clone with no reference to the original.
Copy this container, making a clone with no reference to the original.
If these containers are mutable (with org.dianahep.histogrammar.Aggregation), the new one will be, too.
- Definition Classes
- Container
- var entries: Double
Every
Container
accumulates a sum of weights of observed data.Every
Container
accumulates a sum of weights of observed data.The org.dianahep.histogrammar.Counting/org.dianahep.histogrammar.Counted container only accumulates a sum of weights.
Its data type is
Double
because in principal, it can be any non-negative real number. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- Labeling → AnyRef → Any
- def factory: Label
Reference to the container's factory for runtime reflection.
- def fill[SUB <: Datum](datum: SUB, weight: Double = 1.0): Unit
Entry point for the general user to pass data into the container for aggregation.
Entry point for the general user to pass data into the container for aggregation.
Usually all containers in a collection of histograms take the same input data by passing it recursively through the tree. Quantities to plot are specified by the individual container's lambda functions.
The container is changed in-place.
- Definition Classes
- Labeling → Aggregation
- def get(x: String): Option[V]
Attempt to get key
x
, returningNone
if it does not exist. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getOrElse(x: String, default: => V): V
Attempt to get key
x
, returning an alternative if it does not exist. - def hashCode(): Int
- Definition Classes
- Labeling → AnyRef → Any
- def indexes: Seq[Seq[CollectionIndex]]
- Definition Classes
- Collection
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keySet: Set[String]
Set of keys among the
pairs
. - def keys: Iterable[String]
Iterable over the keys of the
pairs
. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val pairs: (String, V)*
- val pairsMap: Map[String, V]
Input
pairs
as a key-value map. - def size: Int
Number of
pairs
. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toImmutable: EdType
Convert any Container into a NoAggregation Container.
Convert any Container into a NoAggregation Container.
- Definition Classes
- Container
- def toJson: Json
Convert this container to JSON (dropping its
fill
method, making it immutable).Convert this container to JSON (dropping its
fill
method, making it immutable).Note that the org.dianahep.histogrammar.json.Json object has a
stringify
method to serialize.- Definition Classes
- Container
- def toJsonFile(fileName: String): Unit
- Definition Classes
- Container
- def toJsonFile(file: File): Unit
- Definition Classes
- Container
- def toJsonFragment(suppressName: Boolean): JsonObject
Used internally to convert the container to JSON without its
"type"
header. - def toJsonString: String
- Definition Classes
- Container
- def toString(): String
- Definition Classes
- Labeling → AnyRef → Any
- val v: V
- Attributes
- protected
- def values: Iterable[V]
Iterable over the values of the
pairs
. - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def walk[X](op: (Seq[CollectionIndex]) => X): Seq[X]
- Definition Classes
- Collection
- def zero: Labeling[V]
Create an empty container with the same parameters as this one.
Create an empty container with the same parameters as this one.
If this container is mutable (with org.dianahep.histogrammar.Aggregation), the new one will be, too.
The original is unaffected.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)