Package com.yahoo.schema
Record Class RankProfile.RankFeatureNormalizer
java.lang.Object
java.lang.Record
com.yahoo.schema.RankProfile.RankFeatureNormalizer
- Enclosing class:
- RankProfile
-
Constructor Summary
ConstructorDescriptionRankFeatureNormalizer
(com.yahoo.searchlib.rankingexpression.Reference original, String name, String input, String algo, double kparam) Creates an instance of aRankFeatureNormalizer
record class. -
Method Summary
Modifier and TypeMethodDescriptionalgo()
Returns the value of thealgo
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.input()
Returns the value of theinput
record component.double
kparam()
Returns the value of thekparam
record component.linear
(com.yahoo.searchlib.rankingexpression.Reference original, com.yahoo.searchlib.rankingexpression.Reference inputRef) name()
Returns the value of thename
record component.com.yahoo.searchlib.rankingexpression.Reference
original()
Returns the value of theoriginal
record component.rrank
(com.yahoo.searchlib.rankingexpression.Reference original, com.yahoo.searchlib.rankingexpression.Reference inputRef, double k) toString()
Returns a string representation of this record class.
-
Constructor Details
-
RankFeatureNormalizer
public RankFeatureNormalizer(com.yahoo.searchlib.rankingexpression.Reference original, String name, String input, String algo, double kparam) Creates an instance of aRankFeatureNormalizer
record class.- Parameters:
original
- the value for theoriginal
record componentname
- the value for thename
record componentinput
- the value for theinput
record componentalgo
- the value for thealgo
record componentkparam
- the value for thekparam
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
linear
public static RankProfile.RankFeatureNormalizer linear(com.yahoo.searchlib.rankingexpression.Reference original, com.yahoo.searchlib.rankingexpression.Reference inputRef) -
rrank
public static RankProfile.RankFeatureNormalizer rrank(com.yahoo.searchlib.rankingexpression.Reference original, com.yahoo.searchlib.rankingexpression.Reference inputRef, double k) -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
original
public com.yahoo.searchlib.rankingexpression.Reference original()Returns the value of theoriginal
record component.- Returns:
- the value of the
original
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
input
Returns the value of theinput
record component.- Returns:
- the value of the
input
record component
-
algo
Returns the value of thealgo
record component.- Returns:
- the value of the
algo
record component
-
kparam
public double kparam()Returns the value of thekparam
record component.- Returns:
- the value of the
kparam
record component
-