|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjsr166y.ForkJoinTask<java.lang.Void>
jsr166y.RecursiveAction
groovyx.gpars.extra166y.PAS.FJBase
groovyx.gpars.extra166y.PAS.FJDStats
static final class PAS.FJDStats
| Field Summary | |
|---|---|
(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
|
| Fields inherited from class groovyx.gpars.extra166y.PAS.FJBase |
|---|
hi, lo, next, pap |
| Constructor Summary | |
|---|---|
PAS.FJDStats(AbstractParallelAnyArray pap,
int lo,
int hi,
PAS.FJBase next,
Ops.DoubleComparator comparator)
|
|
| Method Summary | |
|---|---|
(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)
|
| Methods inherited from class groovyx.gpars.extra166y.PAS.FJBase |
|---|
compute, internalCompute |
| Methods inherited from class jsr166y.RecursiveAction |
|---|
exec, getRawResult, setRawResult |
| Methods inherited from class jsr166y.ForkJoinTask |
|---|
adapt, adapt, adapt, cancel, complete, completeExceptionally, fork, get, get, getException, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyInvoke, quietlyJoin, reinitialize, tryUnfork |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
final Ops.DoubleComparator comparator
int size
double min
double max
double sum
int indexOfMin
int indexOfMax
| Constructor Detail |
|---|
PAS.FJDStats(AbstractParallelAnyArray pap,
int lo,
int hi,
PAS.FJBase next,
Ops.DoubleComparator comparator)
| Method Detail |
|---|
public int size()
ParallelDoubleArray.SummaryStatistics
size in interface ParallelDoubleArray.SummaryStatisticspublic double min()
ParallelDoubleArray.SummaryStatistics
min in interface ParallelDoubleArray.SummaryStatisticspublic double max()
ParallelDoubleArray.SummaryStatistics
max in interface ParallelDoubleArray.SummaryStatisticspublic double sum()
ParallelDoubleArray.SummaryStatistics
sum in interface ParallelDoubleArray.SummaryStatisticspublic double average()
ParallelDoubleArray.SummaryStatistics
average in interface ParallelDoubleArray.SummaryStatisticspublic int indexOfMin()
ParallelDoubleArray.SummaryStatistics
indexOfMin in interface ParallelDoubleArray.SummaryStatisticspublic int indexOfMax()
ParallelDoubleArray.SummaryStatistics
indexOfMax in interface ParallelDoubleArray.SummaryStatistics
PAS.FJBase newSubtask(int l,
int h,
PAS.FJBase r)
PAS.FJBase
newSubtask in class PAS.FJBasevoid onReduce(PAS.FJBase right)
PAS.FJBase
onReduce in class PAS.FJBase
void updateMin(int i,
double x)
void updateMax(int i,
double x)
void atLeaf(int l,
int h)
PAS.FJBase
atLeaf in class PAS.FJBase
void filteredAtLeaf(int l,
int h)
public java.lang.String toString()
toString in class java.lang.Object
|
Copyright © 2008–2012 Václav Pech. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||