java.lang.Object
com.pervasive.datarush.analytics.naivebayes.InputTargetPair
- All Implemented Interfaces:
Comparable<InputTargetPair>
Represents the pair
(inputValue, targetValue). Used in the context of a PMML
"PairCounts" element, the inputValue corresponds to the
"value" attribute and the targetValue corresponds to the
"value" attribute of the "TargetStatistics" child-element.-
Constructor Summary
ConstructorsConstructorDescriptionInputTargetPair(String inputValue, String targetValue) Create a new InputTargetPair. -
Method Summary
Modifier and TypeMethodDescriptionintCompare this to another InputTargetPair.booleanTwoInputTargetPair's are equal if their input values and target values are equal.Returns the input value of this pair.Returns the target value of this pair.inthashCode()Returns a hashCode based on input value and target value.toString()Returns a string representation of this object.
-
Constructor Details
-
InputTargetPair
Create a new InputTargetPair.- Parameters:
inputValue- the input value.targetValue- the target value.
-
-
Method Details
-
equals
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
Returns a string representation of this object. -
getInputValue
Returns the input value of this pair.- Returns:
- the input value of this pair.
-
getTargetValue
Returns the target value of this pair.- Returns:
- the target value of this pair.
-
compareTo
Compare this to another InputTargetPair. Sorted first by input value, then by target value.- Specified by:
compareToin interfaceComparable<InputTargetPair>
-