import type { ReadonlyVec, Vec } from "./api.js";
/**
 * Takes an array of vectors (of uniform dimensions) and computes the
 * componentwise medians (in accordance to the Manhattan-distance formulation of
 * the k-medians problem). Writes result to `out` (or a new vector).
 *
 * @example
 * ```ts tangle:../export/median.ts
 * import { median } from "@thi.ng/vectors";
 *
 * console.log(
 *   median([], [[3, 10, 400], [4, 30, 100], [1, 40, 200], [2, 20, 300]])
 * );
 * // [ 3, 30, 300 ]
 * ```
 *
 * @param out -
 * @param src -
 */
export declare const median: (out: Vec | null, src: ReadonlyVec[]) => Vec;
/**
 * Computes the median component of given vector. Returns 0 if vector is empty.
 *
 * @example
 * ```ts tangle:../export/vmedian.ts
 * import { vmedian } from "@thi.ng/vectors";
 *
 * console.log(
 *   vmedian([10, 20, 5, 15])
 * );
 * // 10
 * ```
 *
 * @param a -
 */
export declare const vmedian: (a: ReadonlyVec) => number;
//# sourceMappingURL=median.d.ts.map