- 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, theinputValue
corresponds to the "value" attribute and thetargetValue
corresponds 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 int
compareTo(InputTargetPair o)
Compare this to another InputTargetPair.boolean
equals(Object o)
TwoInputTargetPair
's are equal if their input values and target values are equal.
String
getInputValue()
Returns the input value of this pair.String
getTargetValue()
Returns the target value of this pair.int
hashCode()
Returns a hashCode based on input value and target value.String
toString()
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:
compareTo
in interfaceComparable<InputTargetPair>
-
-