Rank [Obj,Double]
Description
Rank objects by the value of a double property compared to a given value.
Input
SOURCE [OBJ,Double]: list of pairs to rank
Output
CLOSE [OBJ]: ranked objects, closest to the given value on topFAR [OBJ]: ranked objects, farthest from the given value on top
Parameters
Value: the value to compare each object's value againstRanking Function:Constant: the input value becomes the scoreNormalizedSlope: positive value determining the slope of the ranking curve (which is a convex cusp). The higher the slope, the wider the ranking (i.e., the closer the resulting scores). Explicitly, at distanceSlopeaway from the given value, the new rank is 0.5.
Hard filter: optional hard filters to apply before rankingNo filterNot greater than ValueNot smaller than Value