CMS 3D CMS Logo

Functions
ConstantStepOdeSolver.cc File Reference
#include <cassert>
#include "CalibCalorimetry/HcalAlgos/interface/ConstantStepOdeSolver.h"

Go to the source code of this file.

Functions

static double interpolateLinear (const double x, const double f0, const double f1)
 

Function Documentation

◆ interpolateLinear()

static double interpolateLinear ( const double  x,
const double  f0,
const double  f1 
)
inlinestatic

Definition at line 5 of file ConstantStepOdeSolver.cc.

References DeadROC_duringRun::f1, and x.

Referenced by ConstantStepOdeSolver::interpolateCoordinate(), and ConstantStepOdeSolver::interpolateIntegrated().

5  {
6  return f0 * (1.0 - x) + f1 * x;
7 }
float x