Record Class PairwiseTestResult

java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.persistence.query.PairwiseTestResult

public record PairwiseTestResult(String algorithmA, String algorithmB, long sampleSizeA, long sampleSizeB, double pValue, double holmAdjustedPValue, String betterAlgorithm, boolean significantAt05) extends Record
One pairwise statistical comparison row.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PairwiseTestResult(String algorithmA, String algorithmB, long sampleSizeA, long sampleSizeB, double pValue, double holmAdjustedPValue, String betterAlgorithm, boolean significantAt05)
    Creates an instance of a PairwiseTestResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the algorithmA record component.
    Returns the value of the algorithmB record component.
    Returns the value of the betterAlgorithm record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the holmAdjustedPValue record component.
    double
    Returns the value of the pValue record component.
    long
    Returns the value of the sampleSizeA record component.
    long
    Returns the value of the sampleSizeB record component.
    boolean
    Returns the value of the significantAt05 record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PairwiseTestResult

      public PairwiseTestResult(String algorithmA, String algorithmB, long sampleSizeA, long sampleSizeB, double pValue, double holmAdjustedPValue, String betterAlgorithm, boolean significantAt05)
      Creates an instance of a PairwiseTestResult record class.
      Parameters:
      algorithmA - the value for the algorithmA record component
      algorithmB - the value for the algorithmB record component
      sampleSizeA - the value for the sampleSizeA record component
      sampleSizeB - the value for the sampleSizeB record component
      pValue - the value for the pValue record component
      holmAdjustedPValue - the value for the holmAdjustedPValue record component
      betterAlgorithm - the value for the betterAlgorithm record component
      significantAt05 - the value for the significantAt05 record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • algorithmA

      public String algorithmA()
      Returns the value of the algorithmA record component.
      Returns:
      the value of the algorithmA record component
    • algorithmB

      public String algorithmB()
      Returns the value of the algorithmB record component.
      Returns:
      the value of the algorithmB record component
    • sampleSizeA

      public long sampleSizeA()
      Returns the value of the sampleSizeA record component.
      Returns:
      the value of the sampleSizeA record component
    • sampleSizeB

      public long sampleSizeB()
      Returns the value of the sampleSizeB record component.
      Returns:
      the value of the sampleSizeB record component
    • pValue

      public double pValue()
      Returns the value of the pValue record component.
      Returns:
      the value of the pValue record component
    • holmAdjustedPValue

      public double holmAdjustedPValue()
      Returns the value of the holmAdjustedPValue record component.
      Returns:
      the value of the holmAdjustedPValue record component
    • betterAlgorithm

      public String betterAlgorithm()
      Returns the value of the betterAlgorithm record component.
      Returns:
      the value of the betterAlgorithm record component
    • significantAt05

      public boolean significantAt05()
      Returns the value of the significantAt05 record component.
      Returns:
      the value of the significantAt05 record component