Package br.unip.aps.ml
Record Class EstudoPrevisao.Caso
java.lang.Object
java.lang.Record
br.unip.aps.ml.EstudoPrevisao.Caso
- All Implemented Interfaces:
Serializable
- Enclosing class:
EstudoPrevisao
public static record EstudoPrevisao.Caso(YearMonth mes, long real, double previsto, long maiorMesTreino, YearMonth maiorMesTreinoData, int maiorMunicipioMesTreino, int maiorMunicipioMesCaso, String municipioCaso, List<long[]> diario, double[] mediaDiariaAnteriores, double diasSemChuva, double diasSemChuvaAnteriores, double risco, double riscoAnteriores, List<String[]> municipios)
extends Record
implements Serializable
Estudo de caso de um mes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCaso(YearMonth mes, long real, double previsto, long maiorMesTreino, YearMonth maiorMesTreinoData, int maiorMunicipioMesTreino, int maiorMunicipioMesCaso, String municipioCaso, List<long[]> diario, double[] mediaDiariaAnteriores, double diasSemChuva, double diasSemChuvaAnteriores, double risco, double riscoAnteriores, List<String[]> municipios) Creates an instance of aCasorecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<long[]> diario()Returns the value of thediariorecord component.doubleReturns the value of thediasSemChuvarecord component.doubleReturns the value of thediasSemChuvaAnterioresrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaiorMesTreinorecord component.Returns the value of themaiorMesTreinoDatarecord component.intReturns the value of themaiorMunicipioMesCasorecord component.intReturns the value of themaiorMunicipioMesTreinorecord component.double[]Returns the value of themediaDiariaAnterioresrecord component.mes()Returns the value of themesrecord component.Returns the value of themunicipioCasorecord component.Returns the value of themunicipiosrecord component.doubleprevisto()Returns the value of theprevistorecord component.longreal()Returns the value of therealrecord component.doublerisco()Returns the value of theriscorecord component.doubleReturns the value of theriscoAnterioresrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Caso
public Caso(YearMonth mes, long real, double previsto, long maiorMesTreino, YearMonth maiorMesTreinoData, int maiorMunicipioMesTreino, int maiorMunicipioMesCaso, String municipioCaso, List<long[]> diario, double[] mediaDiariaAnteriores, double diasSemChuva, double diasSemChuvaAnteriores, double risco, double riscoAnteriores, List<String[]> municipios) Creates an instance of aCasorecord class.- Parameters:
mes- the value for themesrecord componentreal- the value for therealrecord componentprevisto- the value for theprevistorecord componentmaiorMesTreino- the value for themaiorMesTreinorecord componentmaiorMesTreinoData- the value for themaiorMesTreinoDatarecord componentmaiorMunicipioMesTreino- the value for themaiorMunicipioMesTreinorecord componentmaiorMunicipioMesCaso- the value for themaiorMunicipioMesCasorecord componentmunicipioCaso- the value for themunicipioCasorecord componentdiario- the value for thediariorecord componentmediaDiariaAnteriores- the value for themediaDiariaAnterioresrecord componentdiasSemChuva- the value for thediasSemChuvarecord componentdiasSemChuvaAnteriores- the value for thediasSemChuvaAnterioresrecord componentrisco- the value for theriscorecord componentriscoAnteriores- the value for theriscoAnterioresrecord componentmunicipios- the value for themunicipiosrecord 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 '=='. -
mes
Returns the value of themesrecord component.- Returns:
- the value of the
mesrecord component
-
real
public long real()Returns the value of therealrecord component.- Returns:
- the value of the
realrecord component
-
previsto
public double previsto()Returns the value of theprevistorecord component.- Returns:
- the value of the
previstorecord component
-
maiorMesTreino
public long maiorMesTreino()Returns the value of themaiorMesTreinorecord component.- Returns:
- the value of the
maiorMesTreinorecord component
-
maiorMesTreinoData
Returns the value of themaiorMesTreinoDatarecord component.- Returns:
- the value of the
maiorMesTreinoDatarecord component
-
maiorMunicipioMesTreino
public int maiorMunicipioMesTreino()Returns the value of themaiorMunicipioMesTreinorecord component.- Returns:
- the value of the
maiorMunicipioMesTreinorecord component
-
maiorMunicipioMesCaso
public int maiorMunicipioMesCaso()Returns the value of themaiorMunicipioMesCasorecord component.- Returns:
- the value of the
maiorMunicipioMesCasorecord component
-
municipioCaso
Returns the value of themunicipioCasorecord component.- Returns:
- the value of the
municipioCasorecord component
-
diario
Returns the value of thediariorecord component.- Returns:
- the value of the
diariorecord component
-
mediaDiariaAnteriores
public double[] mediaDiariaAnteriores()Returns the value of themediaDiariaAnterioresrecord component.- Returns:
- the value of the
mediaDiariaAnterioresrecord component
-
diasSemChuva
public double diasSemChuva()Returns the value of thediasSemChuvarecord component.- Returns:
- the value of the
diasSemChuvarecord component
-
diasSemChuvaAnteriores
public double diasSemChuvaAnteriores()Returns the value of thediasSemChuvaAnterioresrecord component.- Returns:
- the value of the
diasSemChuvaAnterioresrecord component
-
risco
public double risco()Returns the value of theriscorecord component.- Returns:
- the value of the
riscorecord component
-
riscoAnteriores
public double riscoAnteriores()Returns the value of theriscoAnterioresrecord component.- Returns:
- the value of the
riscoAnterioresrecord component
-
municipios
Returns the value of themunicipiosrecord component.- Returns:
- the value of the
municipiosrecord component
-