public interface ConvertToPhysical
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()