Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cselab/aphros
/ GetNorm
Function
GetNorm
deploy/scripts/aphros/plot.py:865–870 ·
view source on GitHub ↗
(k)
Source
from the content-addressed store, hash-verified
863
# Returns:
864
# m, l1, l2
865
def
GetNorm(k):
866
k = abs(k)
867
m = k.max()
868
l1 = k.mean()
869
l2 = (k**2).mean()**0.5
870
return
m, l1, l2
871
872
873
# bubble location
Callers
1
FigHistK
Function · 0.85
Calls
2
max
Method · 0.80
mean
Method · 0.80
Tested by
no test coverage detected