MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / gauss

Function gauss

examples/image_processing/brain_segmentation.cpp:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35array gauss(array x, float u, float s) {
36 double f = 1 / sqrt(2 * af::Pi * s * s);
37 array e = exp(-pow((x - u), 2) / (2 * s * s));
38 return f * e;
39}
40
41array segment_volume(array A, int k) {
42 array I1 = A(span, span, k);

Callers 1

segment_volumeFunction · 0.85

Calls 3

sqrtFunction · 0.85
expFunction · 0.85
powFunction · 0.85

Tested by

no test coverage detected