MCPcopy Create free account
hub / github.com/NanoComp/meep / gaussian_bandwidth

Function gaussian_bandwidth

src/sources.cpp:67–70  ·  view source on GitHub ↗

bandwidth (in frequency units, not angular frequency) of the continuous Fourier transform of the Gaussian source function when it has decayed by a tolerance tol below its peak value

Source from the content-addressed store, hash-verified

65// continuous Fourier transform of the Gaussian source function
66// when it has decayed by a tolerance tol below its peak value
67static double gaussian_bandwidth(double width) {
68 double tol = 1e-7;
69 return sqrt(-2.0 * log(tol)) / (width * pi);
70}
71
72gaussian_src_time::gaussian_src_time(double f, double my_fwidth, double s) {
73 freq = f;

Callers 1

gaussian_src_timeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected