MCPcopy Create free account
hub / github.com/Open-Quant/openquant / _norm

Function _norm

python/openquant/feature_diagnostics.py:474–475  ·  view source on GitHub ↗
(v: Sequence[float])

Source from the content-addressed store, hash-verified

472 }
473
474
475def _standardize(x: Sequence[Sequence[float]]) -> tuple[list[list[float]], list[float], list[float]]:
476 n = len(x)
477 p = len(x[0])
478 means = [sum(row[j] for row in x) / n for j in range(p)]

Callers 1

_power_iterationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected