public class ArrayRankDouble
extends java.lang.Object
| Constructor and Description |
|---|
ArrayRankDouble() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxValueIndex(double[] array)
Get the index position of maximum value the given array
|
int |
getMinValueIndex(double[] array)
Get the index position of minimum value in the given array
|
double |
getNthOrderedValue(double[] array,
int n,
boolean ascending)
Get the n-th value in the array after sorted
|
public int getMaxValueIndex(double[] array)
array - an arraypublic int getMinValueIndex(double[] array)
array - an arraypublic double getNthOrderedValue(double[] array,
int n,
boolean ascending)
array - an arrayn - position in arrayascending - is ascending order or not