public class IdenticalConversion extends AbstractConversion
| Modifier and Type | Field and Description |
|---|---|
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 |
|---|
IdenticalConversion(Map<String,String> prop)
Constructs a new rain conversion utility.
|
| 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)
Returns the raw reading.
|
double |
getRaw(double phys)
Returns the physical value.
|
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
public double getPhysical(double reading)
reading - The raw reading value.public double getRaw(double phys)
public double getDeviation(double reading,
double deviation)
ConvertToPhysicalreading - The raw reading value.deviation - The standard deviation of the raw readings.