netkit.classifiers.aggregators
Class Max

java.lang.Object
  extended by netkit.classifiers.aggregators.AggregatorImp
      extended by netkit.classifiers.aggregators.Max
All Implemented Interfaces:
Aggregator

public final class Max
extends AggregatorImp

The Max aggregator returns the maximum value observed for a continuous attribute in the neighborhood of a node in the graph.

Author:
Sofus A. Macskassy (sofmac@gmail.com)

Field Summary
 
Fields inherited from class netkit.classifiers.aggregators.AggregatorImp
aggregateCache, attribIdx, attribute, edgeType, name, type
 
Constructor Summary
Max(EdgeType edgeType, Attribute attribute)
           
 
Method Summary
 double getValue(Node n, Estimate prior)
          Gets the value stored in this object for the supplied Node.
 
Methods inherited from class netkit.classifiers.aggregators.AggregatorImp
getAttribute, getAttributeIndex, getEdgeType, getName, getNodeInfo, getType, getValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Max

public Max(EdgeType edgeType,
           Attribute attribute)
Method Detail

getValue

public double getValue(Node n,
                       Estimate prior)
Description copied from interface: Aggregator
Gets the value stored in this object for the supplied Node.

Parameters:
n - a Node for which to calculate and/or supply a value.
prior - current priors for unknown neighbor values.
Returns:
the value stored in this object for the supplied Node.