MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / scaled

Function scaled

scripts/analysedriveresponse.py:17–22  ·  view source on GitHub ↗
(row)

Source from the content-addressed store, hash-verified

15
16# Scale the frequencies.
17def scaled(row):
18 m = row.mean()
19 if m != 0:
20 return row / m
21 else:
22 return row
23
24
25scaledfreq = numpy.array([scaled(row) for row in frequencies])

Callers 2

drawNoViewsBackgroundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected