lsapy.standardize.discrete#

lsapy.standardize.discrete(x, rules)[source]#

Discrete function.

This function maps input values to a set of rules that define the output values.

Parameters:
  • x (any) – Input values to map.

  • rules (dict[str | int, int | float]) – Rules to map the input values to output values. The keys correspond to the input values and the values to its associated output values.

Returns:

Mapped output values.

Return type:

ndarray