PYTHIA  8.303
Public Member Functions | List of all members
LinearInterpolator Class Reference

#include <MathTools.h>

Public Member Functions

 LinearInterpolator (double leftIn, double rightIn, vector< double > ysIn)
 Constructor.
 
const vector< double > & data () const
 Function to get y-values of interpolation data.
 
double left () const
 x-values are linearly spaced on the interpolation region.
 
double right () const
 
double dx () const
 
double operator() (double x) const
 Operator to get interpolated value at the specified point. More...
 
Hist plot (string title) const
 Plot the data points of this LinearInterpolator in a histogram.
 
Hist plot (string title, double xMin, double xMax) const
 

Detailed Description

LinearInterpolator class. Used to interpolate between values in linearly spaced data.

Member Function Documentation

double operator() ( double  xIn) const

Operator to get interpolated value at the specified point.

LinearInterpolator class. Used to interpolate between values in linearly spaced data.

Select interpolation bin.

Return zero outside of interpolation range.

Select position in bin and return linear interpolation.


The documentation for this class was generated from the following files: