#include "point.h"
#include <vector>
Go to the source code of this file.
|
namespace | util |
| Collection of methods useful in simulation.
|
|
|
bool | util::isGreater (const double &a, const double &b) |
| Returns true if a > b.
|
|
bool | util::isLess (const double &a, const double &b) |
| Returns true if a < b.
|
|
double | util::hatFunction (const double &x, const double &x_min, const double &x_max) |
| Computes hat function at given point.
|
|
double | util::hatFunctionQuick (const double &x, const double &x_min, const double &x_max) |
| Computes hat function at given point.
|
|
double | util::linearStepFunc (const double &x, const double &x1, const double &x2) |
| Compute linear step function.
|
|
double | util::gaussian (const double &r, const double &a, const double &beta) |
| Compute gaussian function in 1-d.
|
|
double | util::gaussian2d (const util::Point &x, const size_t &dof, const std::vector< double > ¶ms) |
| Compute gaussian function in 2-d.
|
|
double | util::doubleGaussian2d (const util::Point &x, const size_t &dof, const std::vector< double > ¶ms) |
| Compute sum of two gaussian function in 2-d.
|
|
double | util::equivalentMass (const double &m1, const double &m2) |
| Compute harmonic mean of m1 and m2.
|
|
◆ COMPARE_EPS