Discontinuous Galerkin Library
#include "dg/algorithm.h"

\( f(x,y) = Ae^{-\left(\frac{(x-x_0)^2}{2\sigma_x^2} + \frac{(y-y_0)^2}{2\sigma_y^2}\right)} \) More...

Public Member Functions

 Gaussian (double x0, double y0, double sigma_x, double sigma_y, double amp)
 Functor returning a Gaussian. More...
 
DG_DEVICE double operator() (double x, double y) const
 Return the value of the Gaussian. More...
 
DG_DEVICE double operator() (double x, double y, double z) const
 Return the value of the Gaussian. More...
 

Detailed Description

\( f(x,y) = Ae^{-\left(\frac{(x-x_0)^2}{2\sigma_x^2} + \frac{(y-y_0)^2}{2\sigma_y^2}\right)} \)

Constructor & Destructor Documentation

◆ Gaussian()

dg::Gaussian::Gaussian ( double  x0,
double  y0,
double  sigma_x,
double  sigma_y,
double  amp 
)
inline

Functor returning a Gaussian.

Parameters
x0x-center-coordinate
y0y-center-coordinate
sigma_xx - variance (must be !=0)
sigma_yy - variance (must be !=0)
ampAmplitude

Member Function Documentation

◆ operator()() [1/2]

DG_DEVICE double dg::Gaussian::operator() ( double  x,
double  y 
) const
inline

Return the value of the Gaussian.

\[ f(x,y) = Ae^{-\left(\frac{(x-x_0)^2}{2\sigma_x^2} + \frac{(y-y_0)^2}{2\sigma_y^2}\right)} \]

Parameters
xx - coordinate
yy - coordinate
Returns
gaussian

◆ operator()() [2/2]

DG_DEVICE double dg::Gaussian::operator() ( double  x,
double  y,
double  z 
) const
inline

Return the value of the Gaussian.

\[ f(x,y,z) = Ae^{-\left(\frac{(x-x_0)^2}{2\sigma_x^2} + \frac{(y-y_0)^2}{2\sigma_y^2}\right)} \]

Parameters
xx - coordinate
yy - coordinate
zz - coordinate
Returns
gaussian

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