@@ -105,29 +105,29 @@ private <T extends Comparable<? super T>> int findMaxIndex(final T[] arr) {
105
105
}
106
106
107
107
/**
108
- * Classifies elements of the array into the classification array L .
108
+ * Classifies elements of the array into the classification array classificationArray .
109
109
*
110
110
* @param arr the array to be classified.
111
- * @param L the classification array holding the count of elements in each class.
111
+ * @param classificationArray the classification array holding the count of elements in each class.
112
112
* @param c1 the normalization constant used to map the elements to the classification array.
113
113
* @param min the minimum value in the array.
114
114
* @param <T> the type of elements in the array, must be comparable.
115
115
*/
116
- private <T extends Comparable <? super T >> void classify (final T [] arr , final int [] L , final double c1 , final T min ) {
116
+ private <T extends Comparable <? super T >> void classify (final T [] arr , final int [] classificationArray , final double c1 , final T min ) {
117
117
for (int i = 0 ; i < arr .length ; i ++) {
118
118
int k = (int ) (c1 * (arr [i ].compareTo (min )));
119
- L [k ]++;
119
+ classificationArray [k ]++;
120
120
}
121
121
}
122
122
123
123
/**
124
- * Transforms the classification array L into the starting index array.
124
+ * Transforms the classification array classificationArray into the starting index array.
125
125
*
126
- * @param L the classification array holding the count of elements in each class.
126
+ * @param classificationArray the classification array holding the count of elements in each class.
127
127
*/
128
- private void transform (final int [] L ) {
129
- for (int i = 1 ; i < L .length ; i ++) {
130
- L [i ] += L [i - 1 ];
128
+ private void transform (final int [] classificationArray ) {
129
+ for (int i = 1 ; i < classificationArray .length ; i ++) {
130
+ classificationArray [i ] += classificationArray [i - 1 ];
131
131
}
132
132
}
133
133
0 commit comments