public static class FilterConfigBuilder.ThresholdBuilder extends FilterConfigBuilder
DataProcessor.FilterType.THRESHOLD
Modifier and Type | Class and Description |
---|---|
static class |
FilterConfigBuilder.ThresholdBuilder.OutputMode
Type of output the filter will return
|
FilterConfigBuilder.AccumulatorBuilder, FilterConfigBuilder.ComparatorBuilder, FilterConfigBuilder.DeltaValueBuilder, FilterConfigBuilder.IOConfigBuilder, FilterConfigBuilder.LowPassBuilder, FilterConfigBuilder.MathBuilder, FilterConfigBuilder.PassthroughBuilder, FilterConfigBuilder.PeakDetectorBuilder, FilterConfigBuilder.PulseDetectorBuilder, FilterConfigBuilder.RMSBuilder, FilterConfigBuilder.SampleDelayBuilder, FilterConfigBuilder.ThresholdBuilder, FilterConfigBuilder.TimeDelayBuilder
parameters, type
Constructor and Description |
---|
FilterConfigBuilder.ThresholdBuilder() |
Modifier and Type | Method and Description |
---|---|
FilterConfigBuilder.ThresholdBuilder |
withDataSize(byte size)
Sets the size of the data
|
FilterConfigBuilder.ThresholdBuilder |
withHysteresis(short hysteresis)
Sets the hysteresis for crossing values to eliminate oscillation
|
FilterConfigBuilder.ThresholdBuilder |
withOutputMode(FilterConfigBuilder.ThresholdBuilder.OutputMode mode)
Sets what the output of the filter will be
|
FilterConfigBuilder.ThresholdBuilder |
withSignedInput()
Sets if the input should be treated as a signed value
|
FilterConfigBuilder.ThresholdBuilder |
withThreshold(int threshold)
Sets the threshold that data needs to cross
|
build
public FilterConfigBuilder.ThresholdBuilder()
public FilterConfigBuilder.ThresholdBuilder withDataSize(byte size)
size
- Between 1 and 4 bytespublic FilterConfigBuilder.ThresholdBuilder withSignedInput()
public FilterConfigBuilder.ThresholdBuilder withOutputMode(FilterConfigBuilder.ThresholdBuilder.OutputMode mode)
mode
- Output mode to usepublic FilterConfigBuilder.ThresholdBuilder withThreshold(int threshold)
threshold
- Threshold value as a signed integerpublic FilterConfigBuilder.ThresholdBuilder withHysteresis(short hysteresis)
hysteresis
- Minimum number of data samples needed to for a threshold output