static final class PAS.FJDStats extends PAS.FJBase implements ParallelDoubleArray.SummaryStatistics
| Modifier and Type | Field and Description |
|---|---|
(package private) Ops.DoubleComparator |
comparator |
(package private) int |
indexOfMax |
(package private) int |
indexOfMin |
(package private) double |
max |
(package private) double |
min |
(package private) int |
size |
(package private) double |
sum |
hi, lo, next, pap| Constructor and Description |
|---|
FJDStats(AbstractParallelAnyArray pap,
int lo,
int hi,
PAS.FJBase next,
Ops.DoubleComparator comparator) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
atLeaf(int l,
int h)
Leaf computation
|
double |
average()
Returns the arithmetic average of all elements
|
(package private) void |
filteredAtLeaf(int l,
int h) |
int |
indexOfMax()
Returns the index of the maximum element, or -1 if empty
|
int |
indexOfMin()
Returns the index of the minimum element, or -1 if empty
|
double |
max()
Returns the maximum element, or -Double.MAX_VALUE if empty
|
double |
min()
Returns the minimum element, or Double.MAX_VALUE if empty
|
(package private) PAS.FJBase |
newSubtask(int l,
int h,
PAS.FJBase r)
Factory method to create new subtask, normally of current type
|
(package private) void |
onReduce(PAS.FJBase right)
Operation performed after joining right subtask -- default noop
|
int |
size()
Returns the number of elements
|
double |
sum()
Returns the sum of all elements
|
java.lang.String |
toString() |
(package private) void |
updateMax(int i,
double x) |
(package private) void |
updateMin(int i,
double x) |
compute, internalComputeadapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnforkfinal Ops.DoubleComparator comparator
int size
double min
double max
double sum
int indexOfMin
int indexOfMax
FJDStats(AbstractParallelAnyArray pap, int lo, int hi, PAS.FJBase next, Ops.DoubleComparator comparator)
public int size()
ParallelDoubleArray.SummaryStatisticssize in interface ParallelDoubleArray.SummaryStatisticspublic double min()
ParallelDoubleArray.SummaryStatisticsmin in interface ParallelDoubleArray.SummaryStatisticspublic double max()
ParallelDoubleArray.SummaryStatisticsmax in interface ParallelDoubleArray.SummaryStatisticspublic double sum()
ParallelDoubleArray.SummaryStatisticssum in interface ParallelDoubleArray.SummaryStatisticspublic double average()
ParallelDoubleArray.SummaryStatisticsaverage in interface ParallelDoubleArray.SummaryStatisticspublic int indexOfMin()
ParallelDoubleArray.SummaryStatisticsindexOfMin in interface ParallelDoubleArray.SummaryStatisticspublic int indexOfMax()
ParallelDoubleArray.SummaryStatisticsindexOfMax in interface ParallelDoubleArray.SummaryStatisticsPAS.FJBase newSubtask(int l, int h, PAS.FJBase r)
PAS.FJBasenewSubtask in class PAS.FJBasevoid onReduce(PAS.FJBase right)
PAS.FJBaseonReduce in class PAS.FJBasevoid updateMin(int i,
double x)
void updateMax(int i,
double x)
void atLeaf(int l,
int h)
PAS.FJBaseatLeaf in class PAS.FJBasevoid filteredAtLeaf(int l,
int h)
public java.lang.String toString()
toString in class java.lang.Object