Skip to content

Commit

Permalink
Merge pull request #4586 from telefonicaid/danielvillalbamota-thmappe…
Browse files Browse the repository at this point in the history
…r-expr

Improve doc of thMapper expression
  • Loading branch information
fgalan authored Jun 24, 2024
2 parents 039e0b2 + 0caefe7 commit fbb78f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/manuals/orion-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2993,7 +2993,7 @@ results in

#### thMapper

Returns a value among several choices based in threshold values. This function is based in an array of *values* and an array of *choices* (which length is exactly the same as values plus one). Thus, if the input value is between the *i*-th and the *i+1*-th item of *values*, then *i*+1-th item of *choices* is returned.
Returns a value among several choices based in threshold values. This function is based in an array of *values* and an array of *choices* (which length is exactly the same as values plus one). Thus, if the input value is greater than or equal to the *i*-th and less than the *i+1*-th item of *values*, then *i*+1-th item of *choices* is returned.

This transformation returns `null` if some problem with the arguments is found (i.e. choices length is not exacly the same as values plus one, some of the items in the values array is not a number, etc.)

Expand Down

0 comments on commit fbb78f6

Please sign in to comment.