|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConvertToPhysical
An interface describing the capability of a sensor to interpret its reading in a physical sense. Note that it is not necessary for automated weather interpretation to convert the sensor reading to a physically meaningful value. For readability or visualization efforts, it is nevertheless advisable to do so.
| Method Summary | |
|---|---|
double |
getDeviation(double reading,
double deviation)
This second method calculates (standard) deviation of the physical value in physically meaningful units. |
double |
getPhysical(double reading)
(Sensor) Classes defining this interface should know how to convert their sensor reading into physically meaningful results. |
double |
getRaw(double physical)
Is the inversion of getPhysical(double). |
NumberFormat |
getSigmaValueFormat()
Returns a decimal value formatter to be used with the sigma of the value. |
String |
getUnit()
Returns a well-known description of the unit of the sensor value. |
NumberFormat |
getValueFormat()
Returns a decimal value formatter to be used with the physical value. |
| Method Detail |
|---|
double getPhysical(double reading)
reading - The raw reading value.
double getRaw(double physical)
getPhysical(double). Calling this method with the
physical meaningful quantity converts it back into the raw reading.
double getDeviation(double reading,
double deviation)
reading - The raw reading value.deviation - The standard deviation of the raw readings.
String getUnit()
NumberFormat getValueFormat()
NumberFormat getSigmaValueFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||