MCPcopy 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
865def 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

FigHistKFunction · 0.85

Calls 2

maxMethod · 0.80
meanMethod · 0.80

Tested by

no test coverage detected