Class NaturalRanking.DataPosition
java.lang.Object
org.apache.commons.statistics.ranking.NaturalRanking.DataPosition
- Enclosing class:
NaturalRanking
Represents the position of a
double value in a data array.- Since:
- 1.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataPosition(double value, int position) Create an instance with the given value and position. -
Method Summary
Modifier and TypeMethodDescription(package private) intReturns the data position.(package private) doublegetValue()Returns the value.
-
Field Details
-
value
private final double valueData value. -
position
private final int positionData position.
-
-
Constructor Details
-
DataPosition
DataPosition(double value, int position) Create an instance with the given value and position.- Parameters:
value- Data value.position- Data position.
-
-
Method Details
-
getValue
double getValue()Returns the value.- Returns:
- value
-
getPosition
int getPosition()Returns the data position.- Returns:
- position
-