stella.sensor
Class IdenticalConversion
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.sensor.AbstractConversion
stella.sensor.IdenticalConversion
- All Implemented Interfaces:
- Serializable, Cloneable, ConvertToPhysical, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
public class IdenticalConversion
- extends AbstractConversion
The identical converter. It delivers physical value that are equal to
the raw values.
- See Also:
- Serialized Form
|
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)
Returns the raw reading. |
double |
getRaw(double phys)
Returns the physical value. |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, 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, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
IdenticalConversion
public IdenticalConversion(Map prop)
- Constructs a new rain conversion utility. No additional properties
needed.
getPhysical
public double getPhysical(double reading)
- Returns the raw reading.
- Parameters:
reading - The raw reading value.
- Returns:
- The raw reading.
getRaw
public double getRaw(double phys)
- Returns the physical value.
getDeviation
public double getDeviation(double reading,
double deviation)
- Description copied from interface:
ConvertToPhysical
- This second method calculates (standard) deviation of the
physical value in physically meaningful units. For non-linear
transformations, it is necessary to include not only the (standard)
deviation of the measured value, but also the value itself.
- Parameters:
reading - The raw reading value.deviation - The standard deviation of the raw readings.
- Returns:
- The raw deviation.