KASKADE 7 development version
|
A Weighing is a class that allows to compute weighted averages of values associated to cells of a grid. More...
#include <concepts.hh>
A Weighing is a class that allows to compute weighted averages of values associated to cells of a grid.
Weighings are used in interpolateGlobally and interpolateGloballyWeak to define reasonable FE coefficients whenever the data to be interpolated cannot be represented in the FE space, e.g. interpolating a discontinuous function in a space of continuous functions. The conflicting interpolation values at one and the same interpolation node are then averaged - the kind of averaging is specified by the Weighing.
Predefined weighings are InverseVolume, Volume, PlainAverage.
Definition at line 374 of file concepts.hh.
Public Member Functions | |
template<class Cell > | |
double | operator() (Cell const &c) const |
This defines a weight \( w(c) \) for each cell \( c \) of the grid. More... | |
double | scalingFactor () const |
Defines the global scaling factor \( s \). More... | |
double | offset () const |
Defines the global offset \( o \). More... | |
double Weighing::offset | ( | ) | const |
Defines the global offset \( o \).
Referenced by Kaskade::interpolateGloballyWeak().
double Weighing::operator() | ( | Cell const & | c | ) | const |
This defines a weight \( w(c) \) for each cell \( c \) of the grid.
double Weighing::scalingFactor | ( | ) | const |
Defines the global scaling factor \( s \).
Referenced by Kaskade::interpolateGloballyWeak().