Namespaces
MathUtil.cxx File Reference
#include "DDTUtilities/func/MathUtil.h"
#include <cassert>

Go to the source code of this file.

Namespaces

 util
 Filter events based on their run/event numbers.
 

Functions

Simple mathematical functions
void util::LinFitUnweighted (const std::vector< double > &x, const std::vector< double > &y, double &m, double &c)
 Simplified version of LinFit. More...
 
double util::LinFit (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &w, double &m, double &c)
 Find the best-fit line to a collection of points in 2-D by minimizing the squared vertical distance from the points to the line. More...