import type { DoubleMatrix } from 'cheminfo-types'; import { matrixPQN } from 'ml-spectra-processing'; export interface PQNFilter { name: 'pqn'; options?: PQNOptions; } export type PQNOptions = Omit< Exclude[1], undefined>, 'output' >; export function pqn(matrix: DoubleMatrix, options: PQNOptions = {}) { const data = matrixPQN(matrix, { ...options }); return { data }; }