Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DeepGraphLearning/DiffPack
/ p
Function
p
diffpack/schedule.py:14–18 ·
view source on GitHub ↗
(x, sigma, N=10, PI=np.pi)
Source
from the content-addressed store, hash-verified
12
13
14
def
p(x, sigma, N=10, PI=np.pi):
15
p_ = 0
16
for
i in tqdm.trange(-N, N + 1):
17
p_ += np.exp(-(x + 2 * PI * i) ** 2 / 2 / sigma ** 2)
18
return
p_
19
20
21
def
grad(x, sigma, N=10, PI=np.pi):
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected