import type { NumberArray } from 'cheminfo-types'; import { xMaxValue } from './xMaxValue.ts'; import type { XRollingOptions } from './xRolling.ts'; import { xRolling } from './xRolling.ts'; /** * This function calculates a maximum within a rolling window * @param array - array * @param options - options */ export function xRollingMax( array: NumberArray, options: XRollingOptions = {}, ): number[] { return xRolling(array, xMaxValue, options); }