Create an empty, mutable org.dianahep.histogrammar.Counting.
Create an empty, mutable org.dianahep.histogrammar.Counting.
Transform each weight before adding. For instance, to collect a sum of squared weights, pass {x: Double: x*x} as transform
.
Help text that can be queried interactively: more detail than help
.
Create an immutable org.dianahep.histogrammar.Counted from arguments (instead of JSON).
Create an immutable org.dianahep.histogrammar.Counted from arguments (instead of JSON).
Weighted number of entries (sum of all observed weights).
Reconstructs a container of known type from JSON.
Help text that can be queried interactively: a one-liner that can be included in a menu.
Synonym for apply
.
Name of the concrete Factory
as a string; used to label the container type in JSON.
Use org.dianahep.histogrammar.Counting in Scala pattern-matching.
Use org.dianahep.histogrammar.Counted in Scala pattern-matching.
Count entries by accumulating the sum of all observed weights or a sum of transformed weights (e.g. sum of squares of weights).
An optional
transform
function can be applied to the weights before summing. To accumulate the sum of squares of weights, use{x: Double => x*x}
, for instance. This is unlike any other primitive'squantity
function in that its domain is the weights (always double), not data (any type).Factory produces mutable org.dianahep.histogrammar.Counting and immutable org.dianahep.histogrammar.Counted objects.