- java.lang.Object
-
- com.pervasive.datarush.analytics.naivebayes.InputTargetPair
-
- All Implemented Interfaces:
Comparable<InputTargetPair>
public final class InputTargetPair extends Object implements Comparable<InputTargetPair>
Represents the pair(inputValue, targetValue). Used in the context of a PMML "PairCounts" element, theinputValuecorresponds to the "value" attribute and thetargetValuecorresponds to the "value" attribute of the "TargetStatistics" child-element.
-
-
Constructor Summary
Constructors Constructor Description InputTargetPair(String inputValue, String targetValue)Create a new InputTargetPair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(InputTargetPair o)Compare this to another InputTargetPair.booleanequals(Object o)TwoInputTargetPair's are equal if their input values and target values are equal.StringgetInputValue()Returns the input value of this pair.StringgetTargetValue()Returns the target value of this pair.inthashCode()Returns a hashCode based on input value and target value.StringtoString()Returns a string representation of this object.
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
TwoInputTargetPair's are equal if their input values and target values are equal.
-
hashCode
public int hashCode()
Returns a hashCode based on input value and target value.
-
toString
public String toString()
Returns a string representation of this object.
-
getInputValue
public String getInputValue()
Returns the input value of this pair.- Returns:
- the input value of this pair.
-
getTargetValue
public String getTargetValue()
Returns the target value of this pair.- Returns:
- the target value of this pair.
-
compareTo
public int compareTo(InputTargetPair o)
Compare this to another InputTargetPair. Sorted first by input value, then by target value.- Specified by:
compareToin interfaceComparable<InputTargetPair>
-
-