Record Class AdjustmentFactors
java.lang.Object
java.lang.Record
com.pocketcombats.openskill.model.AdjustmentFactors
- Record Components:
omega- the mean adjustment for a player's skill (mu) based on the match outcomedelta- the variance adjustment for a player's skill (sigma) based on the match outcome
Adjustment factors used in rating updates for players or teams after a match.
-
Constructor Summary
ConstructorsConstructorDescriptionAdjustmentFactors(double omega, double delta) Creates an instance of aAdjustmentFactorsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubledelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleomega()Returns the value of theomegarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 '=='. -
omega
public double omega()Returns the value of theomegarecord component.- Returns:
- the value of the
omegarecord component
-
delta
public double delta()Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-