CbmRoot
SplineFunction Class Reference

#include <CbmSplineFunction.h>

Public Member Functions

 SplineFunction ()
 
 SplineFunction (std::vector< double > x, std::vector< double > y)
 
void add_val (double x, double val)
 
double f (double arg) const
 
double fsquare (double arg)
 
void clear ()
 
void clearall ()
 
void fill (std::vector< double > x, std::vector< double > y)
 
void setConstant (double val)
 

Public Attributes

std::vector< std::pair< double, double > > vals
 

Detailed Description

Definition at line 23 of file CbmSplineFunction.h.

Constructor & Destructor Documentation

◆ SplineFunction() [1/2]

SplineFunction::SplineFunction ( )
inline

Definition at line 26 of file CbmSplineFunction.h.

References vals.

◆ SplineFunction() [2/2]

SplineFunction::SplineFunction ( std::vector< double >  x,
std::vector< double >  y 
)
inline

Definition at line 27 of file CbmSplineFunction.h.

References i, vals, x, and y.

Member Function Documentation

◆ add_val()

void SplineFunction::add_val ( double  x,
double  val 
)
inline

Definition at line 33 of file CbmSplineFunction.h.

References vals, and x.

◆ clear()

void SplineFunction::clear ( )
inline

Definition at line 62 of file CbmSplineFunction.h.

References vals.

◆ clearall()

void SplineFunction::clearall ( )
inline

Definition at line 69 of file CbmSplineFunction.h.

References vals.

◆ f()

double SplineFunction::f ( double  arg) const
inline

Definition at line 37 of file CbmSplineFunction.h.

References first, and vals.

Referenced by fsquare().

◆ fill()

void SplineFunction::fill ( std::vector< double >  x,
std::vector< double >  y 
)
inline

Definition at line 70 of file CbmSplineFunction.h.

References i, vals, x, and y.

◆ fsquare()

double SplineFunction::fsquare ( double  arg)
inline

Definition at line 58 of file CbmSplineFunction.h.

References f().

◆ setConstant()

void SplineFunction::setConstant ( double  val)
inline

Definition at line 77 of file CbmSplineFunction.h.

References vals.

Member Data Documentation

◆ vals

std::vector<std::pair<double, double> > SplineFunction::vals

Definition at line 25 of file CbmSplineFunction.h.

Referenced by add_val(), clear(), clearall(), f(), fill(), setConstant(), and SplineFunction().


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