Dichotomize Values by Threshold

Function Description

Judges each value in the input numerical value list by threshold. Values less than or equal to the threshold are True, otherwise False.

DichValuesByThreshold

Use Cases

Dichotomizes numerical values. It is typically used together with the “Filter” step.

Inputs

  • Input Values (Required): Numerical value list to be classified.

Outputs

  • Classification Result: Represents the logical AND result of all input lists after threshold comparison.

Parameters

  • Threshold for Each Port Input Data: Threshold used to classify the numerical value list (multiple thresholds can be input, each threshold separated by a semicolon; input N thresholds, the corresponding input port will become N ports, each threshold corresponds to one input array; after dichotomizing by threshold, performs “AND” operation on the N classification results and outputs to the final classification result).

Usage Example

Input:

  • List 1: [1,2,3], threshold 1

  • List 2: [4,5,6], threshold 5

  • List 3: [7,8,9], threshold 9

Processing:

  1. List 1 comparison: 1≤1→true, 2≤1→false, 3≤1→false → [true, false, false]

  2. List 2 comparison: 4≤5→true, 5≤5→true, 6≤5→false → [true, true, false]

  3. List 3 comparison: 7≤9→true, 8≤9→true, 9≤9→true → [true, true, true]

Logical AND operation:

  • Position 0: true ∧ true ∧ true = true

  • Position 1: false ∧ true ∧ true = false

  • Position 2: false ∧ false ∧ true = false

Final Output: [true, false, false]