org.apache.mahout.math
Class VectorBinaryAggregate.AggregateIterateUnionRandom
java.lang.Object
org.apache.mahout.math.VectorBinaryAggregate
org.apache.mahout.math.VectorBinaryAggregate.AggregateIterateUnionRandom
- Enclosing class:
- VectorBinaryAggregate
public static class VectorBinaryAggregate.AggregateIterateUnionRandom
- extends VectorBinaryAggregate
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VectorBinaryAggregate.AggregateIterateUnionRandom
public VectorBinaryAggregate.AggregateIterateUnionRandom()
isValid
public boolean isValid(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
- Description copied from class:
VectorBinaryAggregate
- Returns true iff we can use this algorithm to apply fc to x and y component-wise and aggregate the result using fa.
- Specified by:
isValid
in class VectorBinaryAggregate
estimateCost
public double estimateCost(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
- Description copied from class:
VectorBinaryAggregate
- Estimates the cost of using this algorithm to compute the aggregation. The algorithm is assumed to be valid.
- Specified by:
estimateCost
in class VectorBinaryAggregate
aggregate
public double aggregate(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
- Description copied from class:
VectorBinaryAggregate
- Main method that applies fc to x and y component-wise aggregating the results with fa. It returns the result of
the aggregation.
- Specified by:
aggregate
in class VectorBinaryAggregate
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.