data
Class PenaltyFunctionComparer

java.lang.Object
  extended by data.PenaltyFunctionComparer
All Implemented Interfaces:
java.util.Comparator<DataPoint>

public class PenaltyFunctionComparer
extends java.lang.Object
implements java.util.Comparator<DataPoint>


Constructor Summary
PenaltyFunctionComparer()
           
 
Method Summary
 int compare(DataPoint point1, DataPoint point2)
           
 double[] getPenaltyParameters()
          Returns the penaltyParameters.
 void setPenaltyParameters(double[] penaltyParameters)
          Sets the penaltyParameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

PenaltyFunctionComparer

public PenaltyFunctionComparer()
Method Detail

getPenaltyParameters

public double[] getPenaltyParameters()
Returns the penaltyParameters.

Returns:
the penaltyParameters.

setPenaltyParameters

public void setPenaltyParameters(double[] penaltyParameters)
Sets the penaltyParameters.

Parameters:
penaltyParameters - the given penaltyParameters.

compare

public int compare(DataPoint point1,
                   DataPoint point2)
Specified by:
compare in interface java.util.Comparator<DataPoint>