JPH01260913A - Digital filter - Google Patents
Digital filterInfo
- Publication number
- JPH01260913A JPH01260913A JP8809688A JP8809688A JPH01260913A JP H01260913 A JPH01260913 A JP H01260913A JP 8809688 A JP8809688 A JP 8809688A JP 8809688 A JP8809688 A JP 8809688A JP H01260913 A JPH01260913 A JP H01260913A
- Authority
- JP
- Japan
- Prior art keywords
- median
- intermediate value
- value
- signal
- input signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005070 sampling Methods 0.000 claims abstract description 5
- 230000001052 transient effect Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 6
- 230000003111 delayed effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000009499 grossing Methods 0.000 description 1
Landscapes
- Manipulation Of Pulses (AREA)
Abstract
Description
【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、デジタルフィルタに関する。[Detailed description of the invention] [Purpose of the invention] (Industrial application field) The present invention relates to a digital filter.
(従来の技術)
工業プラントを制御するプラント制御装置などでは、プ
ラント各部の状態を監視するために、工業プラント各部
の状態を検出するために多数配設されているセンサから
の出力信号をプロセスデータとして入力している。(Prior art) In a plant control device that controls an industrial plant, in order to monitor the status of each part of the plant, output signals from a large number of sensors installed to detect the status of each part of the industrial plant are converted into process data. is entered as .
これらのセンサの出力信号には、ノイズ成分が含まれる
ため、プラント制御装置にプロセスデータを入力する場
合、あらかじめそのノイズを除去する必要があり、かか
る目的としてデジタルフィルタが使用されている。The output signals of these sensors contain noise components, so when inputting process data to a plant control device, it is necessary to remove the noise in advance, and digital filters are used for this purpose.
このデジタルフィルタとしては1例えば、次式(I)で
定義される特性をもつ移動平均フィルタや、次式(n)
で定義される特性をもつ指数平滑法のフィルタが使用さ
れている。Examples of this digital filter include a moving average filter having characteristics defined by the following formula (I), and a moving average filter having characteristics defined by the following formula (n).
An exponential smoothing filter with characteristics defined by is used.
九=(ΣXa−kit ) / k−−−−−−−(■
)yll : αx口+(1−α)y、−、=(IF)
ここで、式(1)でに=3としたときのデジタルフィル
タの特性は、
Yn ” (Xn”X+−t”XII−J/3となり、
そのデジタルフィルタの一例を第4図に示す。9=(ΣXa-kit)/k−−−−−−(■
)yll: αxmouth+(1-α)y,-,=(IF)
Here, when = 3 in equation (1), the characteristics of the digital filter are Yn''(Xn''X+-t''XII-J/3,
An example of the digital filter is shown in FIG.
また、式(II)でα=273としたときのデジタルフ
ィルタの一例を第5図に示す。Further, FIG. 5 shows an example of a digital filter when α=273 in equation (II).
第4図において、入力信号Xは、1サンプル周期の遅延
要素であるレジスタlおよび加算器2に加えられ、レジ
スタ1の出力信号は加算器2およびレジスタ3に加えら
れ、レジスタ3の出力信号は加算器2に加えられる。In FIG. 4, the input signal It is added to adder 2.
加算器2は、3つの入力信号スゎ1Xfi−1tX11
−@を加算し、その結果は、アンプ4により1/3倍さ
れたのちに、フィルタ出力yとして出力される。Adder 2 receives three input signals swa1Xfi-1tX11
-@ is added, and the result is multiplied by 1/3 by the amplifier 4 and then output as the filter output y.
第5図において、入力信号Xは、アンプ5により2/3
倍されたのちに、加算器6に加えられ、加算器6の出力
は、フィルタ出力yとして出力されるとともに、レジス
タ7を介して1サンプル周期遅延され、アンプ8により
1/3倍されたのちに加算器6に加えられている。In FIG. 5, the input signal X is 2/3
After being multiplied, it is added to an adder 6, and the output of the adder 6 is output as a filter output y, delayed by one sample period via a register 7, and multiplied by 1/3 by an amplifier 8. is added to adder 6.
(発明が解決しようとする課題)
ところが、このような従来のデジタルフィルタには1次
のような不都合を生じていた。(Problem to be Solved by the Invention) However, such a conventional digital filter has a first-order problem.
例えば、第4図のデジタルフィルタに第6図(a)に示
すように、時刻t1で1サンプル周期での単独のノイズ
NZが重畳している信号Xが入力されたとき、同図(b
)に示すように、出力yには、そのピーク値が173に
低減されるものの、このノイズNZの成分が時刻t1を
含む3サンプル周期の聞出力される。For example, as shown in FIG. 6(a), when a signal
), the peak value of the output y is reduced to 173, but this noise NZ component is output for three sample periods including time t1.
また、時刻t2でステップ状に立ち上がった信号真の変
化に出力yが追従するまで3サンプル周期の時間を要し
ている。Furthermore, it takes three sample periods for the output y to follow the true change in the signal that rises stepwise at time t2.
同様に、第5図のデジタルフィルタに第6図(a)に示
すように、時刻t1で1サンプル周期τの単独のノイズ
NZが重畳している信号Xが入力されたとき、同図(b
)に示すように、出力yにあられれるノイズNZの影響
は、順次収束するものの完全に除去されない。Similarly, as shown in FIG. 6(a), when the digital filter in FIG. 5 receives a signal
), the influence of the noise NZ on the output y gradually converges but is not completely removed.
また1時刻t2でステップ状に立ち上がった信号真の変
化に出力yが追従するまで長時間を要す。Further, it takes a long time for the output y to follow the change in the true signal that rises stepwise at time t2.
本発明は、このような従来装置の不都合を解消するため
になされたものであり、一過性のパルスノイズを除去で
きるとともに、入力波形を保存できるデジタルフィルタ
を提供することを目的としている。The present invention has been made in order to eliminate such inconveniences of conventional devices, and an object of the present invention is to provide a digital filter that can remove transient pulse noise and preserve input waveforms.
[発明の構成]
(課題を解決するための手段)
本発明は、入力信号を所定のサンプリング周期で順次シ
フトするシフトレジスタと、このシフトレジスタの各段
の出力信号の中央値を選択する中間値選択器を備えたも
のである。[Structure of the Invention] (Means for Solving the Problems) The present invention provides a shift register that sequentially shifts input signals at a predetermined sampling period, and an intermediate value that selects the median value of the output signals of each stage of the shift register. It is equipped with a selector.
(作用)
したがって、入力信号に重畳している一過性のパルスノ
イズは中間値選択器により除去され、また、信号波形は
保存された状態で出力される。(Operation) Therefore, the transient pulse noise superimposed on the input signal is removed by the intermediate value selector, and the signal waveform is output in a preserved state.
(実施例)
以下、添付図面を参照しながら、本発明の実施例を詳細
に説明する。(Embodiments) Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
第1図は、本発明の一実施例にかかるデジタルフィルタ
を示している。FIG. 1 shows a digital filter according to an embodiment of the present invention.
同図において、入力信号Xは、■サンプル周期の遅延要
素を構成するに個のレジスタRGI−RGkを直列接続
して構成したシフトレジスタSRに加えられており、こ
のシフトレジスタSRの各段の出力信号。In the same figure, the input signal signal.
および、入力信号Xは、中間値選択器MVGに加えられ
ている。And the input signal X is applied to the intermediate value selector MVG.
中間値選択器MVGは、入力された(k+1)個の信号
のレベル的に中間の値、すなわち、中央値を選択し、そ
の中央値をフィルタ出力yとして出力する。The intermediate value selector MVG selects a level-wise intermediate value of the (k+1) input signals, that is, the median value, and outputs the median value as the filter output y.
ただし、中間値選択器MVGは、kが偶数の場合には、
入力信号が奇数個なので中央値が存在するためその中央
値を選択し、kが奇数の場合には、入力信号が偶数個な
ので中央値が存在しないため、上からに/2番目の値と
下からに/2番目の値の平均値を中央値として算出する
。However, the intermediate value selector MVG, when k is an even number,
Since there is an odd number of input signals, there is a median value, so select the median value, and if k is an odd number, there is no median value because there is an even number of input signals, so the top/second value and bottom value are selected. From then on, calculate the average value of the second values as the median value.
これにより、このデジタルフィルタでは、パルス幅が次
式(I[[)で示されるTIまでの単発パルスを完全に
抑制でき、また、ステップ入力に対する追従遅れは次式
(rV)で示されるT2のようになる。As a result, this digital filter can completely suppress single pulses up to TI, whose pulse width is expressed by the following equation (I It becomes like this.
TI ([k/2]・τ ・・・・・・(III
)T2 < [(k+1)/2]・τ ・・・・・・
(IV)ここで、では、lサンプリング周期をあられす
。TI ([k/2]・τ ・・・・・・(III
)T2 < [(k+1)/2]・τ ・・・・・・
(IV) Here, let's say l sampling period.
例えば、kを2とした場合のデジタルフィルタは、第2
図のように構成される。For example, when k is 2, the digital filter is
It is configured as shown in the figure.
入力信号xIlは、レジスタRGI、RG2によってj
@次遅延され、信号xI1.レジスタRGIの出力信号
X、−s。The input signal xIl is j
@Delayed signal xI1. Output signal X, -s of register RGI.
および、レジスタRG2の出力信号Xn−□は、中間値
選択器MVGに加えられている。The output signal Xn-□ of the register RG2 is applied to the intermediate value selector MVG.
中間値選択器MVGは、入力信号XIl#X1l−1t
XIl−xの中間値、すなわち、2番目の値を選択し、
その値をフィルタ出力yとして出力する。The intermediate value selector MVG receives the input signal XIl#X1l-1t
Select the intermediate value of XIl-x, i.e. the second value,
The value is output as the filter output y.
例えば、第3図(a)に示すように、時刻txtでステ
ップ状に立ち上がる信号らに1時刻txxの6サンプル
周期前の時刻t12で、パルス幅τの単独パルス状のノ
イズNZが重畳されている場合、信号X、1−xtス、
l−2はそれぞれ同図(b)、(C)のように変化する
。For example, as shown in FIG. 3(a), a single pulse-like noise NZ with a pulse width τ is superimposed on a signal that rises stepwise at time txt at time t12, which is 6 sample periods before time txx. If so, the signal X, 1-xt,
l-2 changes as shown in (b) and (C) of the figure, respectively.
したがって、ノイズNZが、信号XIIIXII−ty
xn−zのいずれかにあられれている場合、その他の2
つの信号のレベルが0になっているので、中間値選択器
MVGは、それらの期間で0を選択する。Therefore, the noise NZ is the signal XIIIXII-ty
If any of xn-z is covered, the other 2
Since the levels of the two signals are 0, the intermediate value selector MVG selects 0 in those periods.
これによって、それらの期間でのフィルタ出力yが0に
なり、その結果、フィルタ出力yからノイズNZが除去
される。As a result, the filter output y in those periods becomes 0, and as a result, the noise NZ is removed from the filter output y.
また、信号ス。の立上りは、1サンプル周期でだけ遅れ
てフィルタ出力yにあられれている。Also, signals. The rise of y is delayed by one sample period before reaching the filter output y.
このようにして、このデジタルフィルタでは、パルス幅
が1サンプル周期τまでの単独のノイズを完全に除去で
きる。また、信号xllに対するフィルタ出力yの遅延
時間は1サンプル周期τのみであるので、応答性が良好
である。In this way, this digital filter can completely remove individual noises whose pulse width is up to one sample period τ. Furthermore, since the delay time of the filter output y with respect to the signal xll is only one sample period τ, the response is good.
[発明の効果]
以上説明したように、本発明によれば、入力信号を所定
のサンプリング周期で順次シフトするシフトレジスタと
、このシフトレジスタの各段の出力信号の中央値を選択
する中間値選択器を備えたので、入力信号に重畳してい
る一過性のパルスノイズは中間値選択器により除去され
、また、信号波形は、シフトレジスタの段数に応じて遅
延されるものの保存された状態で出力されるという効果
を得る。[Effects of the Invention] As explained above, according to the present invention, there is provided a shift register that sequentially shifts an input signal at a predetermined sampling period, and an intermediate value selection that selects the median value of the output signal of each stage of this shift register. Since the transient pulse noise superimposed on the input signal is removed by the intermediate value selector, the signal waveform is delayed depending on the number of stages of the shift register, but is preserved. Obtain the effect of being output.
第1図は本発明の一実施例にかかるデジタルフィルタを
示すブロック図、第2図は本発明の他の実施例にかかる
デジタルフィルタを示すブロック図、第3図は第2図の
装置の作用を説明するための波形図、第4図はデジタル
フィルタの従来の一例を示すブロック図、第5図はデジ
タルフィルタの従来の他の例を示すブロック図、第6図
は第4図の装置の作用を説明するための波形図、第7図
は第5図の装置の作用を説明するための波形図である。
RGI、RG2.・・・、 RGk・・・レジスタ、
SR・・・シフトレジスタ、MVG・・・中間値選択器
。
第1図
第4図
第5図
第6図
第7図FIG. 1 is a block diagram showing a digital filter according to one embodiment of the present invention, FIG. 2 is a block diagram showing a digital filter according to another embodiment of the present invention, and FIG. 3 is an operation of the device shown in FIG. 2. 4 is a block diagram showing one conventional example of a digital filter, FIG. 5 is a block diagram showing another conventional example of a digital filter, and FIG. 6 is a diagram showing the device of FIG. 4. FIG. 7 is a waveform diagram for explaining the operation of the device shown in FIG. 5. RGI, RG2. ..., RGk... register,
SR: Shift register, MVG: Intermediate value selector. Figure 1 Figure 4 Figure 5 Figure 6 Figure 7
Claims (1)
フトレジスタと、このシフトレジスタの各段の出力信号
の中央値を選択する中間値選択器を備えたことを特徴と
するデジタルフィルタ。A digital filter comprising: a shift register that sequentially shifts an input signal at a predetermined sampling period; and an intermediate value selector that selects the median value of the output signals of each stage of the shift register.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8809688A JPH01260913A (en) | 1988-04-12 | 1988-04-12 | Digital filter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8809688A JPH01260913A (en) | 1988-04-12 | 1988-04-12 | Digital filter |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01260913A true JPH01260913A (en) | 1989-10-18 |
Family
ID=13933341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8809688A Pending JPH01260913A (en) | 1988-04-12 | 1988-04-12 | Digital filter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01260913A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58222341A (en) * | 1982-06-18 | 1983-12-24 | Fujitsu Ltd | Median filter circuit |
JPS62231509A (en) * | 1986-03-21 | 1987-10-12 | アールシーエー トムソン ライセンシング コーポレーシヨン | Adaptable median filter apparatus |
-
1988
- 1988-04-12 JP JP8809688A patent/JPH01260913A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58222341A (en) * | 1982-06-18 | 1983-12-24 | Fujitsu Ltd | Median filter circuit |
JPS62231509A (en) * | 1986-03-21 | 1987-10-12 | アールシーエー トムソン ライセンシング コーポレーシヨン | Adaptable median filter apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5398029A (en) | Sampling rate converter | |
JPH027710A (en) | Lateral filter | |
JPH039471A (en) | Moving average processor | |
US7046723B2 (en) | Digital filter and method for performing a multiplication based on a look-up table | |
US4785411A (en) | Cascade filter structure with time overlapped partial addition operations and programmable tap length | |
US20130187694A1 (en) | Digital re-sampling apparatus using fractional delay generator | |
KR100241119B1 (en) | Digital phase shifter | |
KR960011419B1 (en) | Complex filter | |
US5894495A (en) | Adaptive digital filter | |
JPH01260913A (en) | Digital filter | |
US4701874A (en) | Digital signal processing apparatus | |
US5490511A (en) | Digital phase shifting apparatus | |
US6938063B2 (en) | Programmable filter architecture | |
JPH05327409A (en) | Rate conversion method and its conversion circuit | |
EP0619649B1 (en) | Digital filter | |
US4829307A (en) | Recursive radar clutter filter | |
US5701262A (en) | Tab coefficient updating device of finite impulse-responding adaptive digital filter | |
JPH06343635A (en) | Ultrasonic doppler blood flow meter | |
JPH08204506A (en) | Interpolation circuit and interpolation system | |
US5712808A (en) | Digital signal processing | |
JP2622962B2 (en) | Zooming device for FFT analyzer | |
SU1288726A2 (en) | Device for restoring continuous functions from discrete readings | |
JPH0120805B2 (en) | ||
JPH08292764A (en) | Signal changeover device | |
JPS5811587B2 (en) | digital beam form |