WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
WireCell::linterp< Real > Class Template Reference

#include <Interpolate.h>

Public Member Functions

template<class BidiIterator >
 linterp (BidiIterator f, BidiIterator end_p, Real left_endpoint, Real step)
 
Real operator() (Real x) const
 

Detailed Description

template<class Real>
class WireCell::linterp< Real >

Use like:

linterp<double> lin(f.begin(), f.end(), x0, xstep); ... double y = lin(42.0);

where "f" is some kind of collection of doubles.

Definition at line 27 of file Interpolate.h.

Constructor & Destructor Documentation

◆ linterp()

template<class Real>
template<class BidiIterator >
WireCell::linterp< Real >::linterp ( BidiIterator  f,
BidiIterator  end_p,
Real  left_endpoint,
Real  step 
)
inline

Definition at line 30 of file Interpolate.h.

Member Function Documentation

◆ operator()()

template<class Real>
Real WireCell::linterp< Real >::operator() ( Real  x) const
inline

Definition at line 35 of file Interpolate.h.


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