Files
2026-02-21 10:33:18 +01:00

10 lines
338 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeData = void 0;
const normalizeData = (filteredData) => {
const max = Math.max(...filteredData);
const multiplier = max === 0 ? 0 : max ** -1;
return filteredData.map((n) => n * multiplier);
};
exports.normalizeData = normalizeData;