Filtering device, sensor device, filtering method and program
AssigneeMitsubishi Electric Corporation
InventorsDaiki Ata, Kazuhiko Nakamura
Life of this patent
Estimating the term…
Abstract
A filtering device (20) includes an acquirer (21) and a filtering unit (22). The acquirer (21) acquires an input value that is repeatedly input. The filtering unit (22) obtains an output value by filtering for reduction of noise included in the input value. When a difference between the current input value and the past output value exceeds a first threshold, the filtering unit (22) obtains a new output value by weighting the current input value with a weight greater than a weight for obtaining the past output value.
Claims10
A filtering device comprising:
- a processer configured to acquire an input value that is repeatedly input, the input value being a magnitude value based on a measurement of a displacement of a workpiece arranged in proximity to the filtering device;
- and
- the processor further configured as a filter to obtain an output value by filtering for reduction of noise included in the input value, wherein
- when a difference between a current input value acquired by the processor and a past output value obtained by the filter exceeds a first threshold, the filter obtains a new output value by weighting the current input value with a weight greater than a weight for obtaining the past output value,
- and the processor is further configured to determine the displacement of the workpiece based on the new output value,
- the filter calculates the output value by a moving average, and when the difference exceeds the first threshold, increases the weight of the current input value by decreasing a count of the input values that are subjected to the moving average, and then calculates the new output value, and
- the weight of the current input value equals an inverse of the count of the input values that are subjected to the moving average.
A filtering method comprising:
- acquiring an input value that is repeatedly input, the input value being a magnitude value based on a measurement of a displacement of a workpiece arranged in proximity to the filtering device;
- and
- applying filtering to reduce noise included in the input value to obtain an output value, wherein
- in the applying, when a difference between a current input value acquired in the acquiring and a past output value obtained in the applying exceeds a first threshold, obtaining a new output lue by weighting the current input value with a weight different from a weight for obtaining the past output value, and
- the method further comprising determining the displacement of the workpiece based on the new output value,
- the filtering calculates the output value by a moving average, and when the difference exceeds the first threshold, increases the weight of the current input value by decreasing a count of the input values that are subjected to the moving average, and then calculates the new output value, and
- the weight of the current input value equals an inverse of the count of the input values, that are subjected to the moving average.
A non-transitory computer-readable recording medium storing a program causing a computer to:
- acquire an input value that is repeatedly input, the input value being a magnitude value based on a measurement of a displacement of a workpiece arranged in proximity to the filtering device;
- and
- apply filtering to reduce noise included in the input value to obtain an output value, wherein
- when a difference between a current input value acquired in the acquiring and a past output value obtained in the applying exceeds a first threshold, the filtering includes obtaining a new output value by weighting the current input value with a weight different from a weight for obtaining the past output value, and
- further causing the computer to determine the displacement of the workpiece based on the new output value, and
- the filtering calculates the output value by a moving average, and when the difference exceeds the first threshold, increases the weight of the current input value by decreasing a count of the input values that are subjected to the moving average, and then calculates the new output value, and
- the weiht of the current input value equals an inverse of the count of the input values that are subjected to the moving average.
Dependencies are inferred from the claim text.