LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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 344 of file SimpleFits.h.
|
private |
class storing input
Definition at line 345 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 351 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 354 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 358 of file SimpleFits.h.
|
inline |
Definition at line 366 of file SimpleFits.h.
Referenced by cluster::ClusterParamsAlg::IntegrateFitCharge().
|
inline |
Definition at line 369 of file SimpleFits.h.
|
inline |
Definition at line 372 of file SimpleFits.h.
|
inline |
Definition at line 397 of file SimpleFits.h.
|
inline |
Definition at line 411 of file SimpleFits.h.
|
inline |
Definition at line 415 of file SimpleFits.h.
|
inline |
Definition at line 377 of file SimpleFits.h.
|
inline |
Definition at line 381 of file SimpleFits.h.
|
inline |
Definition at line 385 of file SimpleFits.h.
|
inline |
Definition at line 389 of file SimpleFits.h.
|
inline |
Definition at line 429 of file SimpleFits.h.
|
inline |
Clears all the statistics.
Definition at line 421 of file SimpleFits.h.
|
inline |
Definition at line 427 of file SimpleFits.h.
|
inline |
Prints the collected statistics into a stream.
Definition at line 436 of file SimpleFits.h.
|
inlinestatic |
Returns the square of the specified value.
Definition at line 441 of file SimpleFits.h.
References geo::sqr().
|
inlineprotected |
Returns the weighted sum of x^n.
Definition at line 447 of file SimpleFits.h.
References lar::util::details::FitDataCollector< T, D >::XN().
|
inlineprotected |
Returns the weighted sum of x^n y.
Definition at line 450 of file SimpleFits.h.
References lar::util::details::FitDataCollector< T, D >::XNY().
|
static |
Degree of the fit.
Definition at line 349 of file SimpleFits.h.
|
protected |
statistics collected from fit data input
Definition at line 444 of file SimpleFits.h.