|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WeatherPropertyMap
Read-only access to weather data.
| Method Summary | ||
|---|---|---|
|
get(WeatherProperty<T> property)
Gets the data represented by a weather property. |
|
|
getStandardDeviation(WeatherProperty<T> property)
Gets the variability of the data from which a property value is calculated. |
|
| Method Detail |
|---|
<T> T get(WeatherProperty<T> property)
T - the type of the dataproperty - the property for which the data is to be returned
null
if no data is available or if the given property is not
supported
java.lang.NullPointerException - if the given property is null<T> T getStandardDeviation(WeatherProperty<T> property)
get(WeatherProperty)
is the average of all data collected, then the value returned by this
method shows how much variation or dispersion exists from the average.
Smaller variation implies higher confidence statistically.
Implementation note: While this method in general is only
applicable to numeric property values, the standard deviation does not
have to be an instance of java.lang.Number. The return
object however must have the same type as that of the property value.
When the comparison between the standard deviation
(returned by this method) and the mean (returned by
get(WeatherProperty)) is not obvious, a helper method may
be provided to illustrate the confidence level in other ways such as the
coefficient of variation in percentages.
T - the data type of the property valueproperty - the property for which the data variability is to be
returned
null if such information is unavailable
or the given property is not supported
java.lang.NullPointerException - if the given property is nullget(WeatherProperty)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||