Record Class PopulationGenetics.AlleleFrequencies
java.lang.Object
java.lang.Record
org.episteme.natural.biology.genetics.PopulationGenetics.AlleleFrequencies
- Enclosing class:
PopulationGenetics
-
Constructor Summary
ConstructorsConstructorDescriptionAlleleFrequencies(double p, double q) Creates an instance of aAlleleFrequenciesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublep()Returns the value of theprecord component.doubleq()Returns the value of theqrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AlleleFrequencies
public AlleleFrequencies(double p, double q) Creates an instance of aAlleleFrequenciesrecord class.- Parameters:
p- the value for theprecord componentq- the value for theqrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
p
public double p()Returns the value of theprecord component.- Returns:
- the value of the
precord component
-
q
public double q()Returns the value of theqrecord component.- Returns:
- the value of the
qrecord component
-