UNPKG

ml-gsd

Version:
18 lines 627 B
import { getMinMaxIntervalsDy } from "./getMinMaxIntervals.js"; import { getPeakFromIntervals } from "./getPeaksFromIntervals.js"; import { xGetCrossZeroPoints } from "./xGetCrossZeroPoints.js"; export function firstDerivative(input) { const { y, x, dY, dX, yData, yThreshold, ddY } = input; const crossDy = xGetCrossZeroPoints(input); const { intervalL, intervalR } = getMinMaxIntervalsDy(y, x, dY, dX); return getPeakFromIntervals({ minData: crossDy, intervalL, intervalR, x, yData, yThreshold, ddY, }); } //# sourceMappingURL=firstDerivative.js.map