org.apache.hadoop.tools.rumen
Class LoggedDiscreteCDF

java.lang.Object
  extended by org.apache.hadoop.tools.rumen.LoggedDiscreteCDF
All Implemented Interfaces:
DeepCompare

public class LoggedDiscreteCDF
extends Object
implements DeepCompare

A LoggedDiscreteCDF is a discrete approximation of a cumulative distribution function, with this class set up to meet the requirements of the Jackson JSON parser/generator. All of the public methods are simply accessors for the instance variables we want to write out in the JSON files.


Constructor Summary
LoggedDiscreteCDF()
           
 
Method Summary
 void deepCompare(DeepCompare comparand, TreePath loc)
           
 long getMaximum()
           
 long getMinimum()
           
 long getNumberValues()
           
 List<LoggedSingleRelativeRanking> getRankings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggedDiscreteCDF

public LoggedDiscreteCDF()
Method Detail

getMinimum

public long getMinimum()

getRankings

public List<LoggedSingleRelativeRanking> getRankings()

getMaximum

public long getMaximum()

getNumberValues

public long getNumberValues()

deepCompare

public void deepCompare(DeepCompare comparand,
                        TreePath loc)
                 throws DeepInequalityException
Specified by:
deepCompare in interface DeepCompare
Parameters:
comparand - the other comparand that's being compared to me
loc - the path that got to me. In the root, myLocation is null. To process the scalar foo field of the root we will make a recursive call with a TreePath whose fieldName is "bar" and whose index is -1 and whose parent is null. To process the plural bar field of the root we will make a recursive call with a TreePath whose fieldName is "foo" and whose index is -1 and whose parent is also null.
Throws:
DeepInequalityException


Copyright © 2009 The Apache Software Foundation