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()
standard constructor for the DeviceController class
|
float |
getSensorValue()
gets the sensor value
|
java.lang.String |
toString()
gets the operator as a string
|
setTriggerProc
confirmInterface, getDataChannelDescriptor, getDeviceTypeStr, getTriggerProc, isControlDeviceOperator, isSensorDeviceOperator, list, reportDeviceStatus, setDataChannelDescriptor, setDeviceTypeStr
public int kWindowSize
public java.util.ArrayList<java.lang.Float> itsValues
public SensorDeviceOperator_movingMean(int channel, int windowSize)
channel
- the device channelwindowSize
- the window sizepublic 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()
toString
in class SensorDeviceOperator
RH, 2017