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

\( f(x,y) = Ae^{-\frac{(y-y_0)^2}{2\sigma_y^2}} \) More...

Public Member Functions

 GaussianY (double y0, 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...
 

Detailed Description

\( f(x,y) = Ae^{-\frac{(y-y_0)^2}{2\sigma_y^2}} \)

Constructor & Destructor Documentation

◆ GaussianY()

dg::GaussianY::GaussianY ( double  y0,
double  sigma_y,
double  amp 
)
inline

Functor returning a gaussian.

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

Member Function Documentation

◆ operator()()

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

Return the value of the gaussian.

\[ f(x,y) = Ae^{-\frac{(y-y_0)^2}{2\sigma_y^2}} \]

Parameters
xx - coordinate
yy - coordinate
Returns
gaussian

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