UNPKG

peaks-similarity

Version:

Peaks similarity - calculate the similarity between 2 ordered arrays of peaks

21 lines 647 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extractAndNormalize = void 0; const extract_1 = require("./extract"); const normalize_1 = require("./normalize"); function extractAndNormalize(array, from, to) { if (!Array.isArray(array)) { return { info: undefined, data: undefined, }; } const newArray = (0, extract_1.extract)(array, from, to); const info = (0, normalize_1.normalize)(newArray); return { info, data: newArray, }; } exports.extractAndNormalize = extractAndNormalize; //# sourceMappingURL=extractAndNormalize.js.map