mingo
Version:
MongoDB query language for in-memory objects
11 lines (10 loc) • 671 B
TypeScript
import { Any, AnyObject, Options } from "../../types";
import { WindowOperatorInput } from "./_internal";
/**
* Normalizes a numeric expression within a window of values. By default, values can range between zero and one.
* The smallest value becomes zero, the largest value becomes one, and all other values scale proportionally in between zero and one.
* You can also specify a custom minimum and maximum value for the normalized output range.
*
* See {@link https://docs.mongodb.com/manual/reference/operator/aggregation/minMaxScaler/}
*/
export declare const $minMaxScaler: (_: AnyObject, coll: AnyObject[], expr: WindowOperatorInput, options: Options) => Any;