[go: up one dir, main page]

JPH02268367A - Average value calculating circuit - Google Patents

Average value calculating circuit

Info

Publication number
JPH02268367A
JPH02268367A JP9012089A JP9012089A JPH02268367A JP H02268367 A JPH02268367 A JP H02268367A JP 9012089 A JP9012089 A JP 9012089A JP 9012089 A JP9012089 A JP 9012089A JP H02268367 A JPH02268367 A JP H02268367A
Authority
JP
Japan
Prior art keywords
data
average value
output
input
register
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
Application number
JP9012089A
Other languages
Japanese (ja)
Inventor
Takeyoshi Ochiai
勇悦 落合
Akiyoshi Tanaka
章喜 田中
Kiyoshi Takahashi
潔 高橋
Hiroaki Aono
青野 浩明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP9012089A priority Critical patent/JPH02268367A/en
Publication of JPH02268367A publication Critical patent/JPH02268367A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To quickly calculate an average value by reducing the number of times of operation for the average value. CONSTITUTION:Data X1 to X4 are held in registers 2d to 2a 4t-number of seconds after the start of data supply from an input terminal 1. Data X5 is held in the terminal 1 then. At this time, a value X1+X2+X3+X4 is held in a register 6. Consequently, an adder 3 adds data X5 and X1+X2+X3+X4. Data outputted from the register 6 is inputted to a divider 7 and is divided by 4 and is outputted from an output terminal 8. Meanwhile, output data of the adder 3 is inputted to a subtractor 5, and output data X1 in a register 4 is subtracted, and the result X2+X3+X4+X5 is inputted to the register 6. After 5t-number of seconds, said value is outputted. This value is outputted from a terminal 8. This operation is repeated at intervals of t-number of seconds. By this constitution, the number of times of operation for the total sum of input data is reduced. This effect is increased according as N is larger.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ディジタル信号に含まれている雑音やドリフ
ト雑音等を除去するために用いられる平均値算出回路に
関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an average value calculation circuit used to remove noise, drift noise, etc. contained in a digital signal.

従来の技術 最近、画像処理装置や音声処理装置等において、ディジ
タル信号を取り扱うことが盛んに行われるようになって
きた。これらの装置において、データに含まれている雑
音やドリフト雑音等を除去するためのディジタル信号処
理技術が重要なポイントとなっている。このディジタル
信号処理技術の一つに、時系列データの移動平均を求め
る手法が頻繁に用いられている。
2. Description of the Related Art Recently, image processing devices, audio processing devices, and the like have come to actively handle digital signals. In these devices, digital signal processing technology for removing noise, drift noise, etc. contained in data is an important point. As one of these digital signal processing techniques, a method of obtaining a moving average of time-series data is frequently used.

以下、第2図を用いて移動平均について説明する。第2
図(a)はある装置の測定データである。この測定デー
タは、真のデータに第2図(b)の雑音成分が含まれて
いると想定できる。すなわち、測定データコ真のデータ
+雑音成分 である。
The moving average will be explained below using FIG. 2. Second
Figure (a) shows measurement data of a certain device. It can be assumed that this measurement data contains the noise component shown in FIG. 2(b) in the true data. In other words, the measured data is the true data plus the noise component.

移動平均は、このように雑音成分を含んでいる測定デー
タから、真のデータを推定するために用いられる。この
手法は、隣接するN個の測定データの平均値を求めて測
定結果とするものである。
The moving average is used to estimate true data from measurement data that includes noise components. In this method, the average value of N pieces of adjacent measurement data is determined as a measurement result.

なお、第2図の例では、隣接する3個のデータの平均値
を求めている。
In the example shown in FIG. 2, the average value of three adjacent pieces of data is calculated.

すなわち Y、=1/3(X、+X2+X3) Y2 =: 1 /3 (Xl + X3+ X4 )
Y3” 1/3 (Xs + X4 + X5 )Y(
1= 1 /3 (Xn + Xn+t + Xn+2
 )以上のように3個の測定データを次々に移動させて
、これらの平均値を求めた結果が第2図(C)である。
That is, Y, = 1/3 (X, +X2 + X3) Y2 =: 1 /3 (Xl + X3 + X4)
Y3” 1/3 (Xs + X4 + X5)Y(
1= 1 /3 (Xn + Xn+t + Xn+2
) Figure 2 (C) shows the result of moving the three pieces of measurement data one after another as described above and finding their average value.

次に、測定データからドリフト雑音を取り除いて、真の
データを推定する場合について説明する。
Next, a case will be described in which drift noise is removed from measurement data to estimate true data.

この場合は、平均値を計算するためのデータ数を、前述
の雑音除去の場合に比べてさらに多く取り出して行う。
In this case, a larger number of data are extracted for calculating the average value than in the case of noise removal described above.

例えば、隣接する11個の測定データの平均値を計算し
、この平均値をもとの測定データから引ドリフト雑音を
取り除くようなこ くことによって とを行う。
For example, the average value of 11 adjacent measurement data is calculated, and this average value is subtracted from the original measurement data to remove drift noise.

すなわち、 Yn ==Yn −(1/11 (Xn−5+ Xn−a + Xn−3+ Xl−2+
 Xn−t + Xn  ++ Xn+1 + Xn+
2 + Xn+3+Xn+4 + Xn+s)) の計算を行う。
That is, Yn ==Yn - (1/11 (Xn-5+ Xn-a + Xn-3+ Xl-2+
Xn-t + Xn ++ Xn+1 + Xn+
2 + Xn+3+Xn+4 + Xn+s)).

以上説明したように、ディジタル信号処理において平均
値を計算することは頻繁にあり、このため高速な平均値
算出回路が望まれている。
As explained above, average values are frequently calculated in digital signal processing, and therefore a high-speed average value calculation circuit is desired.

以下、従来の平均値算出回路について第3図を用いて説
明する。なお、第3図は簡単のため4個のデータの平均
値を計算する例について記載している。
Hereinafter, a conventional average value calculation circuit will be explained using FIG. 3. Note that, for the sake of simplicity, FIG. 3 describes an example in which the average value of four pieces of data is calculated.

第3図において、1はデータの入力端子、2a、2b、
 2cは入力されるデータをt秒だけ遅延させるレジス
タ、4at 4bs 4cはレジスタ2a、2b。
In FIG. 3, 1 is a data input terminal, 2a, 2b,
2c is a register that delays input data by t seconds, and 4at 4bs 4c are registers 2a and 2b.

2cから出力されたデータの総和を計算する加算器、7
は平均値を計算するための1/4の割算器、8は出力端
子である。
an adder for calculating the sum of data output from 2c, 7
is a 1/4 divider for calculating the average value, and 8 is an output terminal.

以下、第3図の動作について説明する。まず入力データ
をXl、Xl、Xs、X4、X5、・・・とする。これ
らのデータはt秒間隔で入力端子1から供給される。し
たがって3を砂径には、レジスタ2c、2bs 2aに
それぞれX 11X 2、Xsのデータが保持される。
The operation shown in FIG. 3 will be explained below. First, let input data be Xl, Xl, Xs, X4, X5, . . . . These data are supplied from input terminal 1 at intervals of t seconds. Therefore, when 3 is the sand diameter, data of X 11X 2 and Xs are held in the registers 2c and 2bs 2a, respectively.

また、入力端子1にはX4のデータが供給されている。Further, data of X4 is supplied to the input terminal 1.

次に、レジスタ2c。Next, register 2c.

2b、2aから出力されたXl、Xl、Xsのデータと
入力端子1から供給されたX4のデータが加算器3a、
3bに入力されて加算される。さらに、加算器3aから
出力されたデータ(X4+X3)と、加算器3bから出
力されたデータ(Xl + Xs )が加算器3cに入
力され加算される。すなわちこの加算器3cによって4
個のデータの総和が計算される。加算器3cから出力さ
れたデータは割算冊子に入力され、ここで1/4の計算
が行われる。
The data of Xl, Xl, Xs output from 2b, 2a and the data of X4 supplied from input terminal 1 are added to adder 3a,
3b and is added. Furthermore, the data (X4+X3) output from the adder 3a and the data (Xl+Xs) output from the adder 3b are input to the adder 3c and are added together. That is, this adder 3c adds 4
The sum of the data is calculated. The data output from the adder 3c is input to the division booklet, where the calculation of 1/4 is performed.

すなわちここで平均値が計算される。割算器7から出力
されたデータは出力端子8から出力される。
That is, the average value is calculated here. The data output from the divider 7 is output from the output terminal 8.

以上が第3図における動作説明である。The above is an explanation of the operation in FIG.

次に、第4図を用いて従来の平均値算出回路によって1
1個のデータの平均値を算出する方法について説明する
Next, using the conventional average value calculation circuit using FIG.
A method for calculating the average value of one piece of data will be explained.

第4図において、1はデータの入力端子、2a。In FIG. 4, 1 is a data input terminal, and 2a.

2b12c、2ds 2e、2fs 2gs 2h、2
is2jは入力されるデータをt秒だけ遅延させるレジ
スタ、3a、3b、3c、3d、3e、3f、3g。
2b12c, 2ds 2e, 2fs 2gs 2h, 2
is2j are registers 3a, 3b, 3c, 3d, 3e, 3f, and 3g that delay input data by t seconds.

3h、 3i s 3jはレジスタ2a、 2b、  
” ” ”21.2jから出力されたデータの総和を計
算する加算器、7は平均値を計算するための1/11の
割算器、8は出力端子である。なお、第4図は第3図に
おけるレジスタおよび加算器の数を拡張して、11個の
平均値を計算するようにしであるだけであり、第4図の
動作は第3図の動作と同様であるため、動作説明は省略
する。
3h, 3i s 3j are registers 2a, 2b,
`` `` `` 21. An adder that calculates the sum of the data output from 2j, 7 is a 1/11 divider that calculates the average value, and 8 is an output terminal. The number of registers and adders in Figure 3 is expanded to calculate 11 average values, and the operation in Figure 4 is the same as that in Figure 3, so the operation explanation is as follows. Omitted.

発明が解決しようとする課題 しかし以上のような従来の構成では、入力データの総和
を求める際に演算回数が増える。したがって演算速度も
遅くなるという課題があった。これはN個の入力データ
に対する平均値を求める際に、Nが犬きくな!ればなる
ほど顕著に現われる。
Problems to be Solved by the Invention However, in the conventional configuration as described above, the number of calculations increases when calculating the sum of input data. Therefore, there was a problem that the calculation speed was also slow. This means that when calculating the average value for N input data, N should not be a big problem! The more noticeable it becomes.

本発明の目的は、平均値を求める際の演算回数を減少さ
せることにより、高速に平均値を算出するようにしたも
のである。
An object of the present invention is to calculate the average value quickly by reducing the number of calculations when calculating the average value.

課題を解決するための手段 上記目的を達成するため、本発明の技術的解決手段は、
入力されるディジタル信号を時間Tだけ遅延させる第1
の遅延手段を複数個直列接続し、前記直列接続された第
1の遅延手段のそれぞれの出力のうちどれかひとつを選
択する選択手段と、前記入力されるディジタル信号の中
の注目データと前記注目データからN個前までのデータ
の総和を計算する加算手段と、前記選択手段によって選
択された前記注目データから数えてN個前のデータを前
記総和から引く減算手段と、前記総和を計算する際に前
記注目データの一つ前のデータからN個前までのデータ
の総和を時間Tだけ遅延させる第2の遅延手段と、前記
第2の遅延手段から出力された結果を1/Nにする割算
手段とを設けたものである。
Means for Solving the Problems In order to achieve the above object, the technical solution of the present invention is as follows:
The first one delays the input digital signal by the time T.
selecting means for connecting a plurality of delay means in series, selecting one of the outputs of each of the first delay means connected in series; and selecting one of the outputs of the first delay means connected in series; an addition means for calculating the sum of N pieces of data before the data; a subtraction means for subtracting the N pieces of data before the data of interest selected by the selection means from the sum; a second delay means for delaying the sum of data from the data immediately before the data of interest to N data before the data of interest by a time T; It is equipped with a calculation means.

作用 本発明は、N個の入力データに対する平均値を求める際
のNに依存することなく演算回数が固定なので、演算回
数および演算速度をそれぞれ低減することができる。
Effects In the present invention, since the number of calculations is fixed without depending on N when calculating the average value for N pieces of input data, the number of calculations and the calculation speed can be reduced.

実施例 以下、図面を参照しながら本発明の一実施例について説
明する。
Embodiment Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の第1の実施例におけるブロック図であ
る。なお、第1図は簡単のため4個のデータの平均値を
計算するものについて記載している。
FIG. 1 is a block diagram of a first embodiment of the present invention. Note that, for the sake of simplicity, FIG. 1 shows an example in which the average value of four pieces of data is calculated.

第1図において、1はデータの入力端子、2a、2b、
2c、2d、2e12f、2g、2h、2is2j、2
には入力されるデータを時間を秒だけ遅延させるレジス
タ、3は入力端子1から供給されるデータと後述するレ
ジスタ6から出力されるデータを加算する加算器、4は
レジスタ2a、2b。
In FIG. 1, 1 is a data input terminal, 2a, 2b,
2c, 2d, 2e12f, 2g, 2h, 2is2j, 2
3 is a register that delays input data by seconds; 3 is an adder that adds data supplied from input terminal 1 and data output from register 6, which will be described later; 4 is register 2a, 2b.

2cs 2d、 2es 2fq 2g、 2h、 2
i12j。
2cs 2d, 2es 2fq 2g, 2h, 2
i12j.

2kからそれぞれ出力されるデータのうちどれか一つを
選択するセレクタであり、入力端子4a。
The input terminal 4a is a selector that selects one of the data output from each of the input terminals 2k and 2k.

4b、 4c 、4d 、4e s 4r 、4gl 
4h、 4+ s4J、4にと出力端子40と選択制御
端子41を有する。6は加算器3から出力されるデータ
からセレクタ4の出力データを引く減算器、6は減算器
5から出力される結果を保持するレジスタであり、レジ
スタ2a、2bq  −・−12Js2にと同様に、入
力データに対し出力データをt秒だけ遅延させるもので
ある。7は平均値を計算するための1/nの割算器であ
り、制御端子71を有する。8は出力端子である。
4b, 4c, 4d, 4e s 4r, 4gl
4h, 4+s4J, and 4 have an output terminal 40 and a selection control terminal 41. 6 is a subtracter that subtracts the output data of selector 4 from the data output from adder 3, and 6 is a register that holds the result output from subtracter 5, similar to registers 2a and 2bq - -12Js2. , the output data is delayed by t seconds with respect to the input data. 7 is a 1/n divider for calculating the average value, and has a control terminal 71. 8 is an output terminal.

以上のような構成において、以下、その動作を説明する
。まずあらかじめレジスタ2a、2b、2cs 2d、
2e、2fs 2g、2h、2is 2js2におよび
レジスタ6を”0°クリアしておく。またセレクタ4は
選択制御端子41に入力されたデータによって出力端子
4oが入力端子4dを選択するようにしておく。また割
算器7は制御端子71から入力されるデータによって1
/4の演算を行うようにしておく。
The operation of the above configuration will be described below. First of all, registers 2a, 2b, 2cs 2d,
2e, 2fs 2g, 2h, 2js2 and register 6 are cleared to 0°. Also, selector 4 is configured so that output terminal 4o selects input terminal 4d based on the data input to selection control terminal 41. Also, the divider 7 is set to 1 by the data input from the control terminal 71.
/4 calculation is performed.

以上のような状態で入力端子1からt秒間隔でデータを
入力する。なお入力データはX4、X2、X3、X4、
X5、・・・とする。
In the above state, data is input from input terminal 1 at intervals of t seconds. The input data is X4, X2, X3, X4,
Let it be X5,...

入力端子1からデータ供給され始めてから41秒後には
、レジスタ2d、2c、2b、2aにそれぞれXl s
 X 2、X3、X4のデータが保持される。
41 seconds after data starts being supplied from input terminal 1, Xl s is input to registers 2d, 2c, 2b, and 2a, respectively.
Data of X2, X3, and X4 is held.

また、入力端子1にはX5のデータが供給されている。Further, data of X5 is supplied to input terminal 1.

この時レジスタeには、あらかじめレジスタ2a、2b
s 2cs 2dおよびレジスタθを″0″クリアして
おいたので(Xl+X2+X3 + X4)の値が保持
されている。したがって加算器3は、入力端子1から供
給されているX5のデータとレジスタ6から出力される
データ(XI+X2 +’X3 +X4 )を加算する
。すなわち、加算器3の結果は(XI +X2 + X
3 + X4 + X5 )となる。なお、レジスタ6
から出力されるデータ(X1+X2+X3+X4)は割
算器7に入力され、1/4されて出力端子8から出力さ
れる。一方、加算器3から出力されたデータは減算器6
に入力される。減算器6は加算器3から出力されたデー
タからセレクタ4の出力データX1を引く。すなわち、
減算器6の結果は(Xz +x3 +X4+Xs)とな
り、レジスタ6に入力される。
At this time, register e contains registers 2a and 2b in advance.
Since s2cs2d and register θ were cleared to "0", the value of (Xl+X2+X3+X4) is held. Therefore, the adder 3 adds the data of X5 supplied from the input terminal 1 and the data (XI+X2 +'X3 +X4) output from the register 6. That is, the result of adder 3 is (XI +X2 + X
3 + X4 + X5). In addition, register 6
The data (X1+X2+X3+X4) outputted from the divider 7 is inputted to the divider 7, divided into 1/4, and outputted from the output terminal 8. On the other hand, the data output from the adder 3 is transferred to the subtracter 6.
is input. The subtracter 6 subtracts the output data X1 of the selector 4 from the data output from the adder 3. That is,
The result of the subtracter 6 is (Xz +x3 +X4+Xs), which is input to the register 6.

次に入力端子1からデータ供給され始めてから5を秒後
になると、レジスタ6からは(Xz + X3+X4+
X5)の値が出力される。この値が割算器7に入力され
、1/4されて出力端子8から出力される。一方、入力
端子1からはX6のデータと供給されており、加算器3
はこのX6のデータとレジスタ6から出力されるデータ
(Xz + X3 +X4+X5)を加算する。すなわ
ち、加算器3の結果は(Xz +x3 +x4 +X5
 +X6 )となる。加算器3から出力されたデータは
減算器5に入力される。減算器6は加算器3から出力さ
れたデータがちセレクタ4の出力データX2を引く。す
なわち、減算器6の結果は(X3+X4+X5+X6)
となる。この減算器6の結果はレジスタeに入力され、
を秒後に割算器7によって1/4され平均値が計算され
る。この結果は出力端子8から出力される。以上の操作
をt秒間隔で繰り返し行う。
Next, when 5 seconds have passed since data began to be supplied from input terminal 1, register 6 outputs (Xz + X3 + X4 +
The value of X5) is output. This value is input to the divider 7, divided into 1/4, and outputted from the output terminal 8. On the other hand, data of X6 is supplied from input terminal 1, and adder 3
adds this data of X6 and the data output from register 6 (Xz + X3 + X4 + X5). That is, the result of adder 3 is (Xz +x3 +x4 +X5
+X6). The data output from the adder 3 is input to the subtracter 5. The subtracter 6 subtracts the output data X2 of the selector 4 from the data output from the adder 3. In other words, the result of subtractor 6 is (X3+X4+X5+X6)
becomes. The result of this subtracter 6 is input to register e,
After a second, the divider 7 divides the value into 1/4 and calculates the average value. This result is output from the output terminal 8. The above operation is repeated at intervals of t seconds.

すなわち、第1図は以下に示す第(3)式を回路で実現
したものである。
That is, FIG. 1 is a circuit implementation of equation (3) shown below.

まず、平均値Y1、Yl、Y3、Ynを以下のように定
義する。
First, the average values Y1, Yl, Y3, and Yn are defined as follows.

Yl :1/4< X+ +X2 +X3 +X4 )
Yl =1 /4 (Xz +X3 +X4 +Xs 
)Y3=1/4 (X3 +x4+X5 +X5)Yn
=1/4 (Xn +Xn+1 +Xn+2 +Xn−
+−3)・・・・・・・・・(1) ここで P1=(X1+X2+X3+X4) とすると P2=(X2+X3+X4+X5) =p、+x5−x。
Yl: 1/4< X+ +X2 +X3 +X4)
Yl =1 /4 (Xz +X3 +X4 +Xs
)Y3=1/4 (X3 +x4+X5 +X5)Yn
=1/4 (Xn +Xn+1 +Xn+2 +Xn-
+-3)・・・・・・・・・(1) Here, if P1=(X1+X2+X3+X4), then P2=(X2+X3+X4+X5) =p, +x5-x.

P3 =P2 +X6−X2 Pn = Pn−1十X41+3 となり、 Y1=1/4PI Y2=1/4P2 −Xn−,・・・・・・・・・(2) Y3=1/4P3 Yn:1/4Pn               ’・
・・・・・・・(3)となる。
P3 = P2 + 4Pn'・
......(3).

すなわち、第1図のレジスタ6は第(2)式のPr+を
保持するものであり、加算器3は第(2)式のうちの(
Pn−+ + Xn+3)を、減算器6は第(2)式の
Pn計算するものである。
That is, the register 6 in FIG. 1 holds Pr+ in equation (2), and the adder 3 holds Pr+ in equation (2).
Pn-+ + Xn+3), and the subtracter 6 calculates Pn in equation (2).

以上4個のデータの平均値を算出する方法について説明
した。
The method for calculating the average value of the four pieces of data has been described above.

なお、11個のデータの平均値を算出するには、第1図
に示すセレクタ4の出力端子4oが点線で示しであるよ
うに入力端子4kを選択するようにし、また割算器7は
1/11の演算を行うようにすればよい。
In addition, in order to calculate the average value of 11 data, the output terminal 4o of the selector 4 shown in FIG. /11 calculation may be performed.

また、第1図では加算器3の結果からセレクタ4の出力
データを引いているが、レジスタ6から出力されたデー
タからセレクタ4の出力データを引いた後、入力端子1
から入力されたデータを加算してもよい。つまり、前記
第(2)式において(pn−1−XH−1) + X1
+3としてもよい。
In addition, in FIG. 1, the output data of the selector 4 is subtracted from the result of the adder 3, but after subtracting the output data of the selector 4 from the data output from the register 6, the input terminal 1
You may add data input from . That is, in the above formula (2), (pn-1-XH-1) + X1
It may be set to +3.

また同様に、入力端子1から入力されたデータからセレ
クタ4の出力データを引いた後、レジスタ6から出力さ
れたデータを加算してもよい。つまり、前記第(2)式
において(Xn+3− Xn−t ) +Pn−1とし
てもよい。
Similarly, after subtracting the output data of the selector 4 from the data input from the input terminal 1, the data output from the register 6 may be added. That is, in the above equation (2), (Xn+3-Xn-t) +Pn-1 may be used.

また、入力データ8個の平均値を計算する際、Nが固定
であればセレクタ4はなくてもよいことは明らかである
Furthermore, when calculating the average value of eight pieces of input data, it is clear that the selector 4 may be omitted if N is fixed.

以上本実施例によれば、入力データの総和を求める際の
演算回数は従来例に比べ少なくてすむ。
As described above, according to this embodiment, the number of calculations required to calculate the sum of input data can be reduced compared to the conventional example.

例えば、11個の入力データの平均値を計算する時、従
来例では第4図に示すように10回の加算を行わなけれ
ばならない。これに対し本発明では2回の加減算ですむ
。したがって本発明は演算速度を速くすることができる
。なお、この効果はN個の入力データに対する平均値を
求める際に、Nが大きくなればなるほど顕著に現われる
For example, when calculating the average value of 11 input data, in the conventional example, addition must be performed 10 times as shown in FIG. In contrast, in the present invention, only two additions and subtractions are required. Therefore, the present invention can increase the calculation speed. Note that this effect becomes more pronounced as N becomes larger when calculating the average value for N pieces of input data.

発明の効果 以上のように本発明は、入力データの総和を求める際の
演算回数は従来例に比べ少なくてすみ、この結果、演算
速度を速くすることができるので、その効果は大きい。
Effects of the Invention As described above, the present invention has great effects because the number of calculations needed to calculate the sum of input data is smaller than in the conventional example, and as a result, the calculation speed can be increased.

なお、この効果はN個の入力データに対する平均値を求
める際に、Nが大きくなればなるほど顕著に現われる。
Note that this effect becomes more pronounced as N becomes larger when calculating the average value for N pieces of input data.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例における平均値算出回路を示
すブロック結線図、第2図は移動平均を説明するための
図、第3図および第4図は従来の平均値算出回路である
。 1・・・入力端子、2a、 2b、 2c、 2d、 
2es 2f 。 2g、2h、2i、2j、2k・・・レジスタ、3・・
・加算器、4・・・セレクタ、4a、4b、4c、4d
、4e、4f。 4 g 、 4 h 1’ ! s ’ J、4k・・
・セレクタの入力端子、40・・・セレクタの出力端子
、41・・・選択制御端子、5・・・減算器、θ・・・
レジスタ、7・・・割算器、71・・・制御端子、8・
・・出力端子。 代理人の氏名 弁理士 粟 野 重 孝 ほか1名Q\ 昼 昧 第 図 (ω量定データ (b)報音成分 (C)号勧V四〇)エカプーり 墓 3 口 =力
FIG. 1 is a block diagram showing an average value calculation circuit according to an embodiment of the present invention, FIG. 2 is a diagram for explaining a moving average, and FIGS. 3 and 4 are conventional average value calculation circuits. . 1... Input terminal, 2a, 2b, 2c, 2d,
2es 2f. 2g, 2h, 2i, 2j, 2k... register, 3...
・Adder, 4...Selector, 4a, 4b, 4c, 4d
, 4e, 4f. 4 g, 4 h 1'! s' J, 4k...
- Input terminal of selector, 40... Output terminal of selector, 41... Selection control terminal, 5... Subtractor, θ...
Register, 7... Divider, 71... Control terminal, 8.
...Output terminal. Name of agent: Patent attorney Shigetaka Awano and 1 other personQ

Claims (1)

【特許請求の範囲】[Claims] 入力されるディジタル信号を時間Tだけ遅延させる第1
の遅延手段を複数個直列接続し、その直列接続された第
1の遅延手段のそれぞれの出力のうちどれかひとつを選
択する選択手段と、前記入力されるディジタル信号の中
の注目データとその注目データからN個前までのデータ
の総和を計算する加算手段と、前記選択手段によつて選
択された前記注目データから数えてN個前のデータのみ
を前記総和から引く減算手段と、前記総和を計算する際
に前記注目データの一つ前のデータからN個前までのデ
ータの総和を時間Tだけ遅延させる第2の遅延手段と、
前記第2の遅延手段から出力された総和結果を1/Nに
することにより平均値を算出する割算手段とを有する平
均値算出回路。
The first one delays the input digital signal by the time T.
selecting means for connecting a plurality of delay means in series and selecting one of the outputs of each of the first delay means connected in series; an addition means for calculating the sum of N data before the data; a subtraction means for subtracting only the N data before the data selected by the selection means from the sum; a second delay means for delaying the sum of the data from the data immediately before the data of interest to N pieces of data before the data of interest by a time T during calculation;
and a dividing means for calculating an average value by dividing the total sum result outputted from the second delay means to 1/N.
JP9012089A 1989-04-10 1989-04-10 Average value calculating circuit Pending JPH02268367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9012089A JPH02268367A (en) 1989-04-10 1989-04-10 Average value calculating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9012089A JPH02268367A (en) 1989-04-10 1989-04-10 Average value calculating circuit

Publications (1)

Publication Number Publication Date
JPH02268367A true JPH02268367A (en) 1990-11-02

Family

ID=13989653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9012089A Pending JPH02268367A (en) 1989-04-10 1989-04-10 Average value calculating circuit

Country Status (1)

Country Link
JP (1) JPH02268367A (en)

Similar Documents

Publication Publication Date Title
EP0249962B1 (en) Digital video signal processor
US6385635B1 (en) Product sum operation device capable of carrying out fast operation
US4336600A (en) Binary word processing method using a high-speed sequential adder
JPH02268367A (en) Average value calculating circuit
JPS63187366A (en) Arithmetic unit for moving average
JPH0834407B2 (en) Input weighted transversal filter
JP2760756B2 (en) Digital filter
JPS6310263A (en) Vector processor
JPH06214595A (en) Voice recognition method
JP2870242B2 (en) Competitive synchronization protection circuit
JPS6367812A (en) Smoothing circuit
JPH03167914A (en) Digital notch filter
JPH0296416A (en) Signal processing unit
JP2007201521A (en) Frequency component isolation filter, method, and program
JP3240706B2 (en) Butterfly operation circuit
JP2874031B2 (en) Redesign method of combinational circuit
JPH01166129A (en) Specific divisor dividing system
JPH02193412A (en) Selecting circuit
JPS5985539A (en) division processing device
JPH11205088A (en) Waveform shaping filter processor and its processing method
JPH01288967A (en) Pipeline signal processing circuit
JPH0350961A (en) Noise reduction device
JPH04266151A (en) Signal processing integrated circuit
JPS6059461A (en) Program memory device
JPS63167971A (en) Arithmetic unit