INET Framework for OMNeT++/OMNEST
inet::math::ConstantInterpolatorBase< X, Y > Class Template Reference

#include <Interpolators.h>

Inheritance diagram for inet::math::ConstantInterpolatorBase< X, Y >:
inet::math::InterpolatorBase< X, Y > inet::math::IInterpolator< X, Y > inet::math::AverageInterpolator< X, Y > inet::math::EitherInterpolator< X, Y > inet::math::LeftInterpolator< X, Y > inet::math::MaximumInterpolator< X, Y > inet::math::MinimumInterpolator< X, Y > inet::math::RightInterpolator< X, Y >

Private Member Functions

virtual Y getMean (const X x1, const Y y1, const X x2, const Y y2) const override
 Returns the mean interpolated value in the closed interval of [x1, x2]. More...
 

Additional Inherited Members

- Public Member Functions inherited from inet::math::InterpolatorBase< X, Y >
virtual Y getMin (const X x1, const Y y1, const X x2, const Y y2) const override
 Returns the minimum interpolated value in the closed interval of [x1, x2]. More...
 
virtual Y getMax (const X x1, const Y y1, const X x2, const Y y2) const override
 Returns the maximum interpolated value in the closed interval of [x1, x2]. More...
 
- Public Member Functions inherited from inet::math::IInterpolator< X, Y >
virtual ~IInterpolator ()
 
virtual Y getValue (const X x1, const Y y1, const X x2, const Y y2, const X x) const =0
 Returns the interpolated value for the given x. More...
 

Member Function Documentation

◆ getMean()

template<typename X , typename Y >
virtual Y inet::math::ConstantInterpolatorBase< X, Y >::getMean ( const X  x1,
const Y  y1,
const X  x2,
const Y  y2 
) const
inlineoverrideprivatevirtual

Returns the mean interpolated value in the closed interval of [x1, x2].

Implements inet::math::IInterpolator< X, Y >.

36  {
37  auto v1 = this->getValue(x1, y1, x2, y2, x1);
38  auto v2 = this->getValue(x1, y1, x2, y2, x2);
39  ASSERT(v1 == v2);
40  return v1;
41  }

The documentation for this class was generated from the following file:
inet::math::IInterpolator::getValue
virtual Y getValue(const X x1, const Y y1, const X x2, const Y y2, const X x) const =0
Returns the interpolated value for the given x.