Record Class Preditor.Parametros

java.lang.Object
java.lang.Record
br.unip.aps.ml.Preditor.Parametros
Enclosing class:
Preditor

public static record Preditor.Parametros(int anoTreino, int anoTeste, int arvores, int k, double epsKm, int minPts, long semente) extends Record
Parametros do modulo de ML.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Parametros(int anoTreino, int anoTeste, int arvores, int k, double epsKm, int minPts, long semente)
    Creates an instance of a Parametros record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the anoTeste record component.
    int
    Returns the value of the anoTreino record component.
    int
    Returns the value of the arvores record component.
    double
    Returns the value of the epsKm record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    k()
    Returns the value of the k record component.
    int
    Returns the value of the minPts record component.
    padrao(int anoTreino, int anoTeste)
     
    long
    Returns the value of the semente 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

    • Parametros

      public Parametros(int anoTreino, int anoTeste, int arvores, int k, double epsKm, int minPts, long semente)
      Creates an instance of a Parametros record class.
      Parameters:
      anoTreino - the value for the anoTreino record component
      anoTeste - the value for the anoTeste record component
      arvores - the value for the arvores record component
      k - the value for the k record component
      epsKm - the value for the epsKm record component
      minPts - the value for the minPts record component
      semente - the value for the semente record component
  • Method Details

    • padrao

      public static Preditor.Parametros padrao(int anoTreino, int anoTeste)
    • 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. All components in this record class are compared with '=='.
      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.
    • anoTreino

      public int anoTreino()
      Returns the value of the anoTreino record component.
      Returns:
      the value of the anoTreino record component
    • anoTeste

      public int anoTeste()
      Returns the value of the anoTeste record component.
      Returns:
      the value of the anoTeste record component
    • arvores

      public int arvores()
      Returns the value of the arvores record component.
      Returns:
      the value of the arvores record component
    • k

      public int k()
      Returns the value of the k record component.
      Returns:
      the value of the k record component
    • epsKm

      public double epsKm()
      Returns the value of the epsKm record component.
      Returns:
      the value of the epsKm record component
    • minPts

      public int minPts()
      Returns the value of the minPts record component.
      Returns:
      the value of the minPts record component
    • semente

      public long semente()
      Returns the value of the semente record component.
      Returns:
      the value of the semente record component