Package br.unip.aps.ml
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
ConstructorsConstructorDescriptionParametros(int anoTreino, int anoTeste, int arvores, int k, double epsKm, int minPts, long semente) Creates an instance of aParametrosrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintanoTeste()Returns the value of theanoTesterecord component.intReturns the value of theanoTreinorecord component.intarvores()Returns the value of thearvoresrecord component.doubleepsKm()Returns the value of theepsKmrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intk()Returns the value of thekrecord component.intminPts()Returns the value of theminPtsrecord component.static Preditor.Parametrospadrao(int anoTreino, int anoTeste) longsemente()Returns the value of thesementerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Parametros
public Parametros(int anoTreino, int anoTeste, int arvores, int k, double epsKm, int minPts, long semente) Creates an instance of aParametrosrecord class.- Parameters:
anoTreino- the value for theanoTreinorecord componentanoTeste- the value for theanoTesterecord componentarvores- the value for thearvoresrecord componentk- the value for thekrecord componentepsKm- the value for theepsKmrecord componentminPts- the value for theminPtsrecord componentsemente- the value for thesementerecord component
-
-
Method Details
-
padrao
-
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 '=='. -
anoTreino
public int anoTreino()Returns the value of theanoTreinorecord component.- Returns:
- the value of the
anoTreinorecord component
-
anoTeste
public int anoTeste()Returns the value of theanoTesterecord component.- Returns:
- the value of the
anoTesterecord component
-
arvores
public int arvores()Returns the value of thearvoresrecord component.- Returns:
- the value of the
arvoresrecord component
-
k
public int k()Returns the value of thekrecord component.- Returns:
- the value of the
krecord component
-
epsKm
public double epsKm()Returns the value of theepsKmrecord component.- Returns:
- the value of the
epsKmrecord component
-
minPts
public int minPts()Returns the value of theminPtsrecord component.- Returns:
- the value of the
minPtsrecord component
-
semente
public long semente()Returns the value of thesementerecord component.- Returns:
- the value of the
sementerecord component
-