The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Accumulators::WeightedSquareAccumulator< Atomicity, Arithmetic > Struct Template Reference

WeightedSquareAccumulator. More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Accumulators/StaticHistogram.h>

Inheritance diagram for Gaudi::Accumulators::WeightedSquareAccumulator< Atomicity, Arithmetic >:
Collaboration diagram for Gaudi::Accumulators::WeightedSquareAccumulator< Atomicity, Arithmetic >:

Public Member Functions

Arithmetic sum2 () const
Public Member Functions inherited from Gaudi::Accumulators::GenericAccumulator< std::pair< double, double >, double, Atomicity, WeightedSquare >
GenericAccumulator operator+= (const InputType by)
GenericAccumulator & operator= (const GenericAccumulator &other)
OutputType value () const
void reset ()
void mergeAndReset (GenericAccumulator< InputType, double, ato, WeightedSquare, Identity, VH > &other)
void operator+ (GenericAccumulator< InputType, double, ato, WeightedSquare, Identity, VH > &&other)

Additional Inherited Members

Public Types inherited from Gaudi::Accumulators::GenericAccumulator< std::pair< double, double >, double, Atomicity, WeightedSquare >
using InputType
using OutputType
using InternalType
using JSONStringEntriesType
Protected Member Functions inherited from Gaudi::Accumulators::GenericAccumulator< std::pair< double, double >, double, Atomicity, WeightedSquare >
auto rawValue () const
Static Protected Member Functions inherited from Gaudi::Accumulators::GenericAccumulator< std::pair< double, double >, double, Atomicity, WeightedSquare >
static double extractJSONData (const nlohmann::json &j, const JSONStringEntriesType &entries)

Detailed Description

template<atomicity Atomicity, typename Arithmetic = double>
struct Gaudi::Accumulators::WeightedSquareAccumulator< Atomicity, Arithmetic >

WeightedSquareAccumulator.

A WeightedSquareAccumulator is an Accumulator storing a weighted sum of squared values. It basically takes a pair (value, weight) as input and sums weight*value*value

See also
Gaudi::Accumulators for detailed documentation

Definition at line 197 of file StaticHistogram.h.

Member Function Documentation

◆ sum2()

template<atomicity Atomicity, typename Arithmetic = double>
Arithmetic Gaudi::Accumulators::WeightedSquareAccumulator< Atomicity, Arithmetic >::sum2 ( ) const
inline

The documentation for this struct was generated from the following file: