Package org.apache.lucene.search
Record Class BayesianScoreEstimator.Parameters
java.lang.Object
java.lang.Record
org.apache.lucene.search.BayesianScoreEstimator.Parameters
- Enclosing class:
BayesianScoreEstimator
public static record BayesianScoreEstimator.Parameters(float alpha, float beta, float baseRate)
extends Record
Estimated parameters for
BayesianScoreQuery.-
Constructor Summary
ConstructorsConstructorDescriptionParameters(float alpha, float beta, float baseRate) Creates an instance of aParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.floatbaseRate()Returns the value of thebaseRaterecord component.floatbeta()Returns the value of thebetarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Parameters
public Parameters(float alpha, float beta, float baseRate) Creates an instance of aParametersrecord class.- Parameters:
alpha- the value for thealpharecord componentbeta- the value for thebetarecord componentbaseRate- the value for thebaseRaterecord 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. -
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. All components in this record class are compared with '=='. -
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
beta
public float beta()Returns the value of thebetarecord component.- Returns:
- the value of the
betarecord component
-
baseRate
public float baseRate()Returns the value of thebaseRaterecord component.- Returns:
- the value of the
baseRaterecord component
-