public class SensorDeviceOperator_movingMean extends SensorDeviceOperator
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<java.lang.Float> |
itsValues |
int |
kWindowSize |
currentValue, isRatiometric, itsDataRate, lastValue
itsDeviceInterface, itsDevicePosCounter
Constructor and Description |
---|
SensorDeviceOperator_movingMean(int channel,
int windowSize)
standard constructor for the DeviceController class
|
Modifier and Type | Method and Description |
---|---|
float |
getAveragedSensorValue() |
float |
getSensorValue() |
java.lang.String |
toString()
report the class as a string
|
setTriggerProc
confirmInterface, getDataChannelDescriptor, getItsDeviceTypeStr, getTriggerProc, isControlDeviceOperator, isSensorDeviceOperator, list, reportDeviceStatus, setDataChannelDescriptor, setItsDeviceTypeStr
public int kWindowSize
public java.util.ArrayList<java.lang.Float> itsValues
public SensorDeviceOperator_movingMean(int channel, int windowSize)
public float getSensorValue() throws java.lang.Exception
getSensorValue
in class SensorDeviceOperator
java.lang.Exception
public float getAveragedSensorValue() throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
DeviceOperator
toString
in class SensorDeviceOperator
RH, 2017