1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
package extra166y; |
137 |
|
* mapped ParallelDoubleArray. |
138 |
|
*/ |
139 |
|
public static interface SummaryStatistics { |
140 |
< |
/** Return the number of elements */ |
140 |
> |
/** Returns the number of elements */ |
141 |
|
public int size(); |
142 |
< |
/** Return the minimum element, or Double.MAX_VALUE if empty */ |
142 |
> |
/** Returns the minimum element, or Double.MAX_VALUE if empty */ |
143 |
|
public double min(); |
144 |
< |
/** Return the maximum element, or -Double.MAX_VALUE if empty */ |
144 |
> |
/** Returns the maximum element, or -Double.MAX_VALUE if empty */ |
145 |
|
public double max(); |
146 |
< |
/** Return the index of the minimum element, or -1 if empty */ |
146 |
> |
/** Returns the index of the minimum element, or -1 if empty */ |
147 |
|
public int indexOfMin(); |
148 |
< |
/** Return the index of the maximum element, or -1 if empty */ |
148 |
> |
/** Returns the index of the maximum element, or -1 if empty */ |
149 |
|
public int indexOfMax(); |
150 |
< |
/** Return the sum of all elements */ |
150 |
> |
/** Returns the sum of all elements */ |
151 |
|
public double sum(); |
152 |
< |
/** Return the arithmetic average of all elements */ |
152 |
> |
/** Returns the arithmetic average of all elements */ |
153 |
|
public double average(); |
154 |
|
} |
155 |
|
|
191 |
|
* @param op the op |
192 |
|
* @return this (to simplify use in expressions) |
193 |
|
*/ |
194 |
< |
public ParallelDoubleArray replaceWithMapping(DoubleOp op) { |
194 |
> |
public ParallelDoubleArray replaceWithMapping(DoubleOp op) { |
195 |
|
super.replaceWithMapping(op); |
196 |
|
return this; |
197 |
|
} |
502 |
|
removeSlotsAt(f.offset, fence); |
503 |
|
return this; |
504 |
|
} |
505 |
+ |
|
506 |
|
/** |
507 |
|
* Returns true if all elements at the same relative positions |
508 |
|
* of this and other array are equal. |
923 |
|
} |
924 |
|
|
925 |
|
/** |
926 |
< |
* Make len slots available at index |
926 |
> |
* Makes len slots available at index. |
927 |
|
*/ |
928 |
|
final void insertSlotsAt(int index, int len) { |
929 |
|
if (len <= 0) |
1165 |
|
} |
1166 |
|
|
1167 |
|
} |
1167 |
– |
|