Package br.unip.aps.ml
Record Class PrevisaoFocos.Resultado
java.lang.Object
java.lang.Record
br.unip.aps.ml.PrevisaoFocos.Resultado
- Enclosing class:
PrevisaoFocos
public static record PrevisaoFocos.Resultado(int anoTreino, int anoTeste, int linhasTreino, int linhasTeste, Metricas.Regressao modelo, Metricas.Regressao persistencia, Metricas.Regressao mediaHistorica, Map<YearMonth,Double> realPorMes, Map<YearMonth,Double> previstoPorMes, double[] importancia, List<Contagem> maioresPrevisoes, List<PrevisaoFocos.ErroPrevisao> maioresErros, Metricas.Regressao janelaExpansivel, Map<YearMonth,Double> previstoJanelaPorMes)
extends Record
Resultado da previsao.
-
Constructor Summary
ConstructorsConstructorDescriptionResultado(int anoTreino, int anoTeste, int linhasTreino, int linhasTeste, Metricas.Regressao modelo, Metricas.Regressao persistencia, Metricas.Regressao mediaHistorica, Map<YearMonth, Double> realPorMes, Map<YearMonth, Double> previstoPorMes, double[] importancia, List<Contagem> maioresPrevisoes, List<PrevisaoFocos.ErroPrevisao> maioresErros, Metricas.Regressao janelaExpansivel, Map<YearMonth, Double> previstoJanelaPorMes) Creates an instance of aResultadorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintanoTeste()Returns the value of theanoTesterecord component.intReturns the value of theanoTreinorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]Returns the value of theimportanciarecord component.Returns the value of thejanelaExpansivelrecord component.intReturns the value of thelinhasTesterecord component.intReturns the value of thelinhasTreinorecord component.Returns the value of themaioresErrosrecord component.Returns the value of themaioresPrevisoesrecord component.Returns the value of themediaHistoricarecord component.modelo()Returns the value of themodelorecord component.Returns the value of thepersistenciarecord component.Returns the value of theprevistoJanelaPorMesrecord component.Returns the value of theprevistoPorMesrecord component.Returns the value of therealPorMesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Resultado
public Resultado(int anoTreino, int anoTeste, int linhasTreino, int linhasTeste, Metricas.Regressao modelo, Metricas.Regressao persistencia, Metricas.Regressao mediaHistorica, Map<YearMonth, Double> realPorMes, Map<YearMonth, Double> previstoPorMes, double[] importancia, List<Contagem> maioresPrevisoes, List<PrevisaoFocos.ErroPrevisao> maioresErros, Metricas.Regressao janelaExpansivel, Map<YearMonth, Double> previstoJanelaPorMes) Creates an instance of aResultadorecord class.- Parameters:
anoTreino- the value for theanoTreinorecord componentanoTeste- the value for theanoTesterecord componentlinhasTreino- the value for thelinhasTreinorecord componentlinhasTeste- the value for thelinhasTesterecord componentmodelo- the value for themodelorecord componentpersistencia- the value for thepersistenciarecord componentmediaHistorica- the value for themediaHistoricarecord componentrealPorMes- the value for therealPorMesrecord componentprevistoPorMes- the value for theprevistoPorMesrecord componentimportancia- the value for theimportanciarecord componentmaioresPrevisoes- the value for themaioresPrevisoesrecord componentmaioresErros- the value for themaioresErrosrecord componentjanelaExpansivel- the value for thejanelaExpansivelrecord componentprevistoJanelaPorMes- the value for theprevistoJanelaPorMesrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components 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
-
linhasTreino
public int linhasTreino()Returns the value of thelinhasTreinorecord component.- Returns:
- the value of the
linhasTreinorecord component
-
linhasTeste
public int linhasTeste()Returns the value of thelinhasTesterecord component.- Returns:
- the value of the
linhasTesterecord component
-
modelo
Returns the value of themodelorecord component.- Returns:
- the value of the
modelorecord component
-
persistencia
Returns the value of thepersistenciarecord component.- Returns:
- the value of the
persistenciarecord component
-
mediaHistorica
Returns the value of themediaHistoricarecord component.- Returns:
- the value of the
mediaHistoricarecord component
-
realPorMes
Returns the value of therealPorMesrecord component.- Returns:
- the value of the
realPorMesrecord component
-
previstoPorMes
Returns the value of theprevistoPorMesrecord component.- Returns:
- the value of the
previstoPorMesrecord component
-
importancia
public double[] importancia()Returns the value of theimportanciarecord component.- Returns:
- the value of the
importanciarecord component
-
maioresPrevisoes
Returns the value of themaioresPrevisoesrecord component.- Returns:
- the value of the
maioresPrevisoesrecord component
-
maioresErros
Returns the value of themaioresErrosrecord component.- Returns:
- the value of the
maioresErrosrecord component
-
janelaExpansivel
Returns the value of thejanelaExpansivelrecord component.- Returns:
- the value of the
janelaExpansivelrecord component
-
previstoJanelaPorMes
Returns the value of theprevistoJanelaPorMesrecord component.- Returns:
- the value of the
previstoJanelaPorMesrecord component
-