Package com.pocketcombats.openskill
Record Class RatingModelConfig
java.lang.Object
java.lang.Record
com.pocketcombats.openskill.RatingModelConfig
- Record Components:
beta- Determines the spread of performance outcomes. A higher beta means outcomes are less predictable based on skill differences, while a lower beta increases the weight of skill in determining match resultsThe scaling factor for uncertainty in skills (sigma).limitSigma- Specifies whether the model should limit the sigma (uncertainty) value growth for player ratings.kappa- Arbitrary small positive real number that is used to prevent the variance of the posterior distribution from becoming too small or negative.tau- Defines the dynamic adjustment of the rating's uncertainty (sigma). Higher tau values allow for faster changes in sigma. The recommended value is sigma percent.balance- InstructsTeamRatingAggregatorto modify its assumptions about users on the tail ends of the skill distribution. With balance turned on, the higher the rating a player has, it’s assumed it’s a much more monumental achievement. The inverse is true for lower rated players. Not allTeamRatingAggregatorimplementations may support this setting.
- All Implemented Interfaces:
Serializable
public record RatingModelConfig(double beta, boolean limitSigma, double kappa, double tau, RatingModelConfig.Balance balance)
extends Record
implements Serializable
Configuration class for rating models, defining parameters that control
the model's behavior and adjustments in player ratings after matches.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionRatingModelConfig(double beta, boolean limitSigma, double kappa, double tau, RatingModelConfig.Balance balance) Creates an instance of aRatingModelConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbalance()Returns the value of thebalancerecord component.doublebeta()Returns the value of thebetarecord component.static RatingModelConfig.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublekappa()Returns the value of thekapparecord component.booleanReturns the value of thelimitSigmarecord component.doubletau()Returns the value of thetaurecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RatingModelConfig
public RatingModelConfig(double beta, boolean limitSigma, double kappa, double tau, RatingModelConfig.Balance balance) Creates an instance of aRatingModelConfigrecord class.- Parameters:
beta- the value for thebetarecord componentlimitSigma- the value for thelimitSigmarecord componentkappa- the value for thekapparecord componenttau- the value for thetaurecord componentbalance- the value for thebalancerecord component
-
-
Method Details
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
beta
public double beta()Returns the value of thebetarecord component.- Returns:
- the value of the
betarecord component
-
limitSigma
public boolean limitSigma()Returns the value of thelimitSigmarecord component.- Returns:
- the value of the
limitSigmarecord component
-
kappa
public double kappa()Returns the value of thekapparecord component.- Returns:
- the value of the
kapparecord component
-
tau
public double tau()Returns the value of thetaurecord component.- Returns:
- the value of the
taurecord component
-
balance
Returns the value of thebalancerecord component.- Returns:
- the value of the
balancerecord component
-