org.hackystat.telemetry.analyzer.function.impl
Class FilterFunction.AverageRankFunction

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.function.impl.FilterFunction.AverageRankFunction
All Implemented Interfaces:
FilterFunction.RankFunction
Enclosing class:
FilterFunction

static class FilterFunction.AverageRankFunction
extends java.lang.Object
implements FilterFunction.RankFunction

A rank function using average as ranking criteria.

Author:
(Cedric) Qin ZHANG

Constructor Summary
FilterFunction.AverageRankFunction()
           
 
Method Summary
 double getRank(TelemetryStream stream)
          Computes the average of a telemetry stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterFunction.AverageRankFunction

FilterFunction.AverageRankFunction()
Method Detail

getRank

public double getRank(TelemetryStream stream)
Computes the average of a telemetry stream.

Specified by:
getRank in interface FilterFunction.RankFunction
Parameters:
stream - A telemetry stream.
Returns:
The average.