import type { DataXY, NumberArray } from 'cheminfo-types'; export interface XYMedianYAtXsOptions { /** Number of points in the sliding window. Must be odd. Defaults to `5`. */ windowSize?: number; } /** * Computes the median of Y values in a sliding window around each target x position. * For each value in xValues, the closest index in data.x is found and the median * of the surrounding y values (within the window) is returned. * @param data - Object with x (sorted in increasing order) and y arrays of the same length. * @param xValues - Array of x positions at which to compute the median. * @param options - Options for the median computation. * @returns A new DataXY with x = xValues and y = computed medians. */ export declare function xyMedianYAtXs(data: DataXY, xValues: NumberArray, options?: XYMedianYAtXsOptions): DataXY; //# sourceMappingURL=xyMedianYAtXs.d.ts.map