public class DewPointConvert extends AbstractConversion
ConvertToPhysical contract, some dirty tricks are involved.| Modifier and Type | Field and Description |
|---|---|
private double |
ambient
The last ambient temperature.
|
private static DecimalFormat |
DEFVALUEFORMAT
The default decimal format for the values.
|
private static DecimalFormat |
DEFVALUESIGMA
The default deciaml format for the sigma of the values.
|
private static long |
serialVersionUID |
KEY_UNIT, KEY_VALUEFORMAT, KEY_VALUESIGMAKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
DewPointConvert(Map info)
Constructs a new cosine converter.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDeviation(double raw,
double dev)
A dew point sensor already delivers degrees centigrade.
|
double |
getPhysical(double raw)
A dew point sensor already delivers degrees centigrade, but only the
difference to the ambient temperature.
|
double |
getRaw(double physical)
A dew point sensor always delivers degrees centrigrade, but only the
difference to the ambient temperature.
|
protected void |
setAmbientTemperature(double temperature)
Sets the last ambient temperature used for calculating the raw reading
of the dew-point sensor.
|
createConversion, getSigmaValueFormat, getUnit, getValueFormataugment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringprivate static final long serialVersionUID
private static final transient DecimalFormat DEFVALUEFORMAT
private static final transient DecimalFormat DEFVALUESIGMA
private double ambient
public DewPointConvert(Map info)
public double getPhysical(double raw)
setAmbientTemperature(double) at each reading.raw - The raw reading value.public double getRaw(double physical)
public double getDeviation(double raw,
double dev)
raw - The raw reading value.dev - The standard deviation of the raw readings.protected void setAmbientTemperature(double temperature)