MCPcopy Create free account
hub / github.com/IRMVLab/SemGauss-SLAM / gaussian

Function gaussian

utils/slam_external.py:32–34  ·  view source on GitHub ↗
(window_size, sigma)

Source from the content-addressed store, hash-verified

30
31
32def gaussian(window_size, sigma):
33 gauss = torch.Tensor([exp(-(x - window_size // 2) ** 2 / float(2 * sigma ** 2)) for x in range(window_size)])
34 return gauss / gauss.sum()
35
36
37def create_window(window_size, channel):

Callers 1

create_windowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected