Closest value

Finds the closest value in a number list.


Inputs

  • source values

    • The list of source values to find the closest values among the target values.
  • target values

    • The list of target values among which the closest values are found from the source values.

Outputs

  • value

    • The closest value from the target values to the source values.
  • value list

    • The list of closest values from the target values to the source values.
  • target indices

    • The list of the indices of the found closest values from the target values list.
  • deltas

    • The list of differences between the source values and their found closest target values.

Note(s)

  • Other names for this node include: ClosestValue, Nearest value, Distance, Delta, and Difference.

Example(s)