LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Base class providing data collection for the simple polynomial fitters. More...
#include "SimpleFits.h"
Public Types | |
using | Data_t = typename Collector_t::Data_t |
type of the data More... | |
using | Measurement_t = typename Collector_t::Measurement_t |
type of measurement without uncertainty More... | |
using | MeasurementAndUncertainty_t = typename Collector_t::MeasurementAndUncertainty_t |
type of measurement with uncertainty More... | |
Public Member Functions | |
void | clear () |
Clears all the statistics. More... | |
template<typename Stream > | |
void | PrintStats (Stream &out) const |
Prints the collected statistics into a stream. More... | |
Add elements | |
| |
bool | add (Data_t x, Data_t y, Data_t sy=Data_t(1.0)) |
bool | add (Measurement_t value, Data_t sy=Data_t(1.0)) |
bool | add (MeasurementAndUncertainty_t value) |
template<typename Iter > | |
void | add_without_uncertainty (Iter begin, Iter end) |
template<typename Iter , typename Pred > | |
void | add_without_uncertainty (Iter begin, Iter end, Pred extractor) |
template<typename Cont , typename Pred > | |
void | add_without_uncertainty (Cont cont, Pred extractor) |
template<typename Cont > | |
void | add_without_uncertainty (Cont cont) |
template<typename VIter , typename UIter , typename VPred , typename UPred = identity> | |
unsigned int | add_with_uncertainty (VIter begin_value, VIter end_value, UIter begin_uncertainty, VPred value_extractor, UPred uncertainty_extractor=UPred()) |
template<typename Iter > | |
unsigned int | add_with_uncertainty (Iter begin, Iter end) |
template<typename Cont > | |
unsigned int | add_with_uncertainty (Cont cont) |
Statistic retrieval | |
| |
int | N () const |
Data_t | AverageUncertainty () const |
Static Public Member Functions | |
template<typename V > | |
static constexpr V | sqr (V const &v) |
Returns the square of the specified value. More... | |
Static Public Attributes | |
static constexpr unsigned int | Degree = Collector_t::Degree |
Degree of the fit. More... | |
Protected Member Functions | |
Data_t | XN (unsigned int n) const |
Returns the weighted sum of x^n. More... | |
Data_t | XNY (unsigned int n) const |
Returns the weighted sum of x^n y. More... | |
Protected Attributes | |
Collector_t | stats |
statistics collected from fit data input More... | |
Private Types | |
using | Collector_t = FitDataCollector< T, D > |
class storing input More... | |
Base class providing data collection for the simple polynomial fitters.
Definition at line 342 of file SimpleFits.h.
|
private |
class storing input
Definition at line 343 of file SimpleFits.h.
using lar::util::details::SimplePolyFitterDataBase< T, D >::Data_t = typename Collector_t::Data_t |
type of the data
Definition at line 349 of file SimpleFits.h.
using lar::util::details::SimplePolyFitterDataBase< T, D >::Measurement_t = typename Collector_t::Measurement_t |
type of measurement without uncertainty
Definition at line 352 of file SimpleFits.h.
using lar::util::details::SimplePolyFitterDataBase< T, D >::MeasurementAndUncertainty_t = typename Collector_t::MeasurementAndUncertainty_t |
type of measurement with uncertainty
Definition at line 355 of file SimpleFits.h.
|
inline |
Definition at line 363 of file SimpleFits.h.
Referenced by cluster::ClusterParamsAlg::IntegrateFitCharge().
|
inline |
Definition at line 365 of file SimpleFits.h.
|
inline |
Definition at line 367 of file SimpleFits.h.
|
inline |
Definition at line 394 of file SimpleFits.h.
|
inline |
Definition at line 405 of file SimpleFits.h.
|
inline |
Definition at line 411 of file SimpleFits.h.
|
inline |
Definition at line 370 of file SimpleFits.h.
|
inline |
Definition at line 376 of file SimpleFits.h.
|
inline |
Definition at line 382 of file SimpleFits.h.
|
inline |
Definition at line 388 of file SimpleFits.h.
|
inline |
Definition at line 427 of file SimpleFits.h.
|
inline |
Clears all the statistics.
Definition at line 419 of file SimpleFits.h.
|
inline |
Definition at line 425 of file SimpleFits.h.
|
inline |
Prints the collected statistics into a stream.
Definition at line 433 of file SimpleFits.h.
|
inlinestatic |
Returns the square of the specified value.
Definition at line 440 of file SimpleFits.h.
References sqr().
|
inlineprotected |
Returns the weighted sum of x^n.
Definition at line 449 of file SimpleFits.h.
References lar::util::details::FitDataCollector< T, D >::XN().
|
inlineprotected |
Returns the weighted sum of x^n y.
Definition at line 452 of file SimpleFits.h.
References lar::util::details::FitDataCollector< T, D >::XNY().
|
static |
Degree of the fit.
Definition at line 347 of file SimpleFits.h.
|
protected |
statistics collected from fit data input
Definition at line 446 of file SimpleFits.h.