public abstract class VectorBinaryAggregate extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VectorBinaryAggregate.AggregateAllIterateSequential |
static class |
VectorBinaryAggregate.AggregateAllIterateThatLookupThis |
static class |
VectorBinaryAggregate.AggregateAllIterateThisLookupThat |
static class |
VectorBinaryAggregate.AggregateAllLoop |
static class |
VectorBinaryAggregate.AggregateIterateIntersection |
static class |
VectorBinaryAggregate.AggregateIterateUnionRandom |
static class |
VectorBinaryAggregate.AggregateIterateUnionSequential |
static class |
VectorBinaryAggregate.AggregateNonzerosIterateThatLookupThis |
static class |
VectorBinaryAggregate.AggregateNonzerosIterateThisLookupThat |
Modifier and Type | Field and Description |
---|---|
static VectorBinaryAggregate[] |
OPERATIONS |
Constructor and Description |
---|
VectorBinaryAggregate() |
Modifier and Type | Method and Description |
---|---|
abstract double |
aggregate(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
Main method that applies fc to x and y component-wise aggregating the results with fa.
|
static double |
aggregateBest(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
This is the method that should be used when aggregating.
|
abstract double |
estimateCost(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
Estimates the cost of using this algorithm to compute the aggregation.
|
static VectorBinaryAggregate |
getBestOperation(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
The best operation is the least expensive valid one.
|
abstract boolean |
isValid(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
Returns true iff we can use this algorithm to apply fc to x and y component-wise and aggregate the result using fa.
|
public static final VectorBinaryAggregate[] OPERATIONS
public abstract boolean isValid(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc)
public abstract double estimateCost(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc)
public abstract double aggregate(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc)
public static VectorBinaryAggregate getBestOperation(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc)
public static double aggregateBest(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.