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 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 a Resultado record class.
      Parameters:
      anoTreino - the value for the anoTreino record component
      anoTeste - the value for the anoTeste record component
      linhasTreino - the value for the linhasTreino record component
      linhasTeste - the value for the linhasTeste record component
      modelo - the value for the modelo record component
      persistencia - the value for the persistencia record component
      mediaHistorica - the value for the mediaHistorica record component
      realPorMes - the value for the realPorMes record component
      previstoPorMes - the value for the previstoPorMes record component
      importancia - the value for the importancia record component
      maioresPrevisoes - the value for the maioresPrevisoes record component
      maioresErros - the value for the maioresErros record component
      janelaExpansivel - the value for the janelaExpansivel record component
      previstoJanelaPorMes - the value for the previstoJanelaPorMes 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 '=='.
      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
    • linhasTreino

      public int linhasTreino()
      Returns the value of the linhasTreino record component.
      Returns:
      the value of the linhasTreino record component
    • linhasTeste

      public int linhasTeste()
      Returns the value of the linhasTeste record component.
      Returns:
      the value of the linhasTeste record component
    • modelo

      public Metricas.Regressao modelo()
      Returns the value of the modelo record component.
      Returns:
      the value of the modelo record component
    • persistencia

      public Metricas.Regressao persistencia()
      Returns the value of the persistencia record component.
      Returns:
      the value of the persistencia record component
    • mediaHistorica

      public Metricas.Regressao mediaHistorica()
      Returns the value of the mediaHistorica record component.
      Returns:
      the value of the mediaHistorica record component
    • realPorMes

      public Map<YearMonth,Double> realPorMes()
      Returns the value of the realPorMes record component.
      Returns:
      the value of the realPorMes record component
    • previstoPorMes

      public Map<YearMonth,Double> previstoPorMes()
      Returns the value of the previstoPorMes record component.
      Returns:
      the value of the previstoPorMes record component
    • importancia

      public double[] importancia()
      Returns the value of the importancia record component.
      Returns:
      the value of the importancia record component
    • maioresPrevisoes

      public List<Contagem> maioresPrevisoes()
      Returns the value of the maioresPrevisoes record component.
      Returns:
      the value of the maioresPrevisoes record component
    • maioresErros

      public List<PrevisaoFocos.ErroPrevisao> maioresErros()
      Returns the value of the maioresErros record component.
      Returns:
      the value of the maioresErros record component
    • janelaExpansivel

      public Metricas.Regressao janelaExpansivel()
      Returns the value of the janelaExpansivel record component.
      Returns:
      the value of the janelaExpansivel record component
    • previstoJanelaPorMes

      public Map<YearMonth,Double> previstoJanelaPorMes()
      Returns the value of the previstoJanelaPorMes record component.
      Returns:
      the value of the previstoJanelaPorMes record component