org.ddogleg.sorting
Class ApproximateSort_F64
- java.lang.Object
-
- org.ddogleg.sorting.ApproximateSort_F64
-
public class ApproximateSort_F64 extends java.lang.ObjectCounting sort for floating point numbers. Sorting accuracy will be to within range/numBins.
-
-
Constructor Summary
Constructors Constructor and Description ApproximateSort_F64(double minValue, double maxValue, int numBins)ApproximateSort_F64(int numBins)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcomputeRange(double[] input, int start, int length)Examines the list and computes the range from itvoidcomputeRange(SortableParameter_F64[] input, int start, int length)Examines the list and computes the range from itvoidsetRange(double minValue, double maxValue)Specify the data rangevoidsortIndex(double[] input, int start, int length, int[] indexes)Sort routine which does not modify the input array and instead maintains a list of indexes.voidsortObject(SortableParameter_F64[] input, int start, int length)Sorts the input list
-
-
-
Constructor Detail
-
ApproximateSort_F64
public ApproximateSort_F64(int numBins)
-
ApproximateSort_F64
public ApproximateSort_F64(double minValue, double maxValue, int numBins)
-
-
Method Detail
-
setRange
public void setRange(double minValue, double maxValue)Specify the data range- Parameters:
minValue- Minimum allowed value. (inclusive)maxValue- Maximum allowed value. (inclusive)
-
computeRange
public void computeRange(double[] input, int start, int length)Examines the list and computes the range from it
-
computeRange
public void computeRange(SortableParameter_F64[] input, int start, int length)
Examines the list and computes the range from it
-
sortIndex
public void sortIndex(double[] input, int start, int length, int[] indexes)Sort routine which does not modify the input array and instead maintains a list of indexes.- Parameters:
input- (Input) Data which is to be sorted. Not modified.start- First element in input listlength- Length of the input listindexes- Number of elements
-
sortObject
public void sortObject(SortableParameter_F64[] input, int start, int length)
Sorts the input list- Parameters:
input- (Input) Data which is to be sorted. Not modified.start- First element in input listlength- Length of the input list
-
-
DataMelt 3.0 © DataMelt by jWork.ORG