ordreindeks
Ordreindeks, or order index, is a term used in mathematics, statistics, and computer science to denote the position of an element within a totally ordered sequence. Given a finite collection of values {x1, x2, ..., xn}, the values can be arranged in nondecreasing order: x(1) <= x(2) <= ... <= x(n). The order index of an element is the position it occupies in this sorted sequence. In many treatments, the i-th smallest value is called the i-th order statistic, denoted X_(i), while the concept of the order index focuses on the position rather than the value itself.
Handling of ties: when equal values occur, multiple elements share the same value. Different conventions exist
Relation to rank and statistics: the order index is closely related to the notion of rank. In
Example: for the set {7, 2, 5, 5, 9}, sorted nondecreasingly as {2, 5, 5, 7, 9},