The type of the immutable version of this container.
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.
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.
Typical use: filledHistogram.as[initialHistogram.Type]
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.
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.
List of sub-aggregators, to make it possible to walk the tree.
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.
Reference to the container's factory for runtime reflection.
Used internally to convert the container to JSON without its "type"
header.
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.
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.
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.
Convert any Container into a NoAggregation Container.
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.
Interface for classes that contain aggregated data, such as "Counted" or "Binned" (immutable) or "Counting" or "Binning" (mutable).
There are two "tenses" of containers: present tense ("Counting", "Binning", etc.) that additionally mix-in org.dianahep.histogrammar.Aggregation and have a
fill
method for accumulating data, and past tense ("Counted", "Binned", etc.) that can only be merged with the+
operator.Containers are monoids: they have a neutral element (
zero
) and an associative operator (+
). Thus, partial sums aggregated in parallel can be combined arbitrarily.The
Container
is parameterized by itself (an example of the curiously recurring template pattern) to pass type information at compile-time.