JP4584010B2 - Median value calculation apparatus, median value calculation method, and median value calculation program - Google Patents
Median value calculation apparatus, median value calculation method, and median value calculation program Download PDFInfo
- Publication number
- JP4584010B2 JP4584010B2 JP2005122781A JP2005122781A JP4584010B2 JP 4584010 B2 JP4584010 B2 JP 4584010B2 JP 2005122781 A JP2005122781 A JP 2005122781A JP 2005122781 A JP2005122781 A JP 2005122781A JP 4584010 B2 JP4584010 B2 JP 4584010B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- range
- median value
- center
- value calculation
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Complex Calculations (AREA)
Description
本発明は、複数のデータからメジアン値を算出するメジアン値算出装置、メジアン値算出方法およびメジアン値算出プログラムに関するものである。 The present invention relates to a median value calculation device, a median value calculation method, and a median value calculation program for calculating a median value from a plurality of data.
従来、実用的なデータ分布を得ることを目的として全データの平均値を用いたデータの正規化が行われている。例えば、画像データの圧縮符号化方式であるMPEG(エムペグ:moving picture experts group)では、平均値を用いて画像データを正規化することで実用的なデータ分布を算出している(例えば、特許文献1参照)。 Conventionally, data normalization using an average value of all data has been performed for the purpose of obtaining a practical data distribution. For example, in MPEG (moving picture experts group), which is a compression encoding method for image data, a practical data distribution is calculated by normalizing the image data using an average value (for example, patent literature). 1).
一方、平均値を用いたデータの正規化では、データ値の大小に左右されやすいためデータの正規化の障害となる場合がある。このようなことから、平均値の代わりにメジアン値(データサンプルをソートしたときに中心にある値)を用いたデータの正規化が多く行なわれている。 On the other hand, data normalization using an average value may be an obstacle to data normalization because it is easily influenced by the magnitude of the data value. For this reason, data normalization using a median value (a value at the center when data samples are sorted) instead of an average value is often performed.
しかしながら、メジアン値を用いた従来技術では、メジアン値を算出するにはデータのソート処理等が必要なことから、メジアン値を求めるのに多大な時間を要し、簡易にメジアン値を算出することができないという問題がある。なお、ハードウェア上でメジアン値を算出する場合には、データのソート処理に複雑なソート回路を構築する必要があるという問題がある。 However, in the prior art using the median value, it takes a lot of time to calculate the median value because it requires data sorting to calculate the median value. There is a problem that can not be. Note that when the median value is calculated on hardware, there is a problem that it is necessary to construct a complicated sort circuit for data sort processing.
本発明は、上記に鑑みてなされたものであって、メジアン値を簡易に算出するためのメジアン値算出装置、メジアン値算出方法およびメジアン値算出プログラムを提供するものである。 The present invention has been made in view of the above, and provides a median value calculation device, a median value calculation method, and a median value calculation program for simply calculating a median value.
上述した課題を解決し、目的を達成するため、本発明は、複数のデータからメジアン値を算出するメジアン値算出装置であって、前記複数のデータそれぞれを各データ値に応じて、所定の値の範囲に区分けされた複数の範囲のいずれかにを振り分ける範囲振り分け手段と、前記複数のデータそれぞれが前記範囲振り分け手段によって振り分けられた前記複数の範囲から、前記複数のデータの中心に位置するデータが振り分けられた範囲を中心範囲として検出する中心範囲検出手段と、前記中心範囲検出手段によって検出された中心範囲の値に基づいて前記中心範囲の中心の値をメジアン値として近似的に算出する近似メジアン値算出手段とを備えたことを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention is a median value calculation device for calculating a median value from a plurality of data, and each of the plurality of data is set to a predetermined value according to each data value. Range distribution means for distributing any of the plurality of ranges divided into ranges, and data located at the center of the plurality of data from the plurality of ranges in which each of the plurality of data is distributed by the range distribution means approximation to approximately calculate the value of the center of the center range as the median value based the central range detecting means for detecting the center range range allocated to the value of the detected center range by said central range detecting means characterized in that a median value calculating means.
上述した課題を解決し、目的を達成するため、本発明は、複数のデータからメジアン値を算出するメジアン値算出装置であって、前記複数のデータそれぞれを各データ値に応じて、所定の値の範囲に区分けされた複数の範囲のいずれかにを振り分ける範囲振り分け手段と、前記複数のデータそれぞれが前記範囲振り分け手段によって振り分けられた前記複数の範囲から、前記複数のデータの中心に位置するデータが振り分けられた範囲を中心範囲として検出する中心範囲検出手段と、前記中心範囲検出手段によって検出された中心範囲の中心の値に係数を乗じることによってメジアン値を近似的に算出する近似メジアン値算出手段とを備えたことを特徴とする。In order to solve the above-described problems and achieve the object, the present invention is a median value calculation device for calculating a median value from a plurality of data, and each of the plurality of data is set to a predetermined value according to each data value. Range distribution means for distributing any of the plurality of ranges divided into ranges, and data located at the center of the plurality of data from the plurality of ranges in which each of the plurality of data is distributed by the range distribution means A center range detecting means for detecting a range to which the values are assigned as a center range, and an approximate median value calculation for approximately calculating a median value by multiplying a value of the center of the center range detected by the center range detecting means by a coefficient Means.
また、本発明は、上記の発明において、前記範囲振り分け手段は、等間隔に区分けされた前記複数の範囲のいずれかに前記複数のデータを振り分けることを特徴とする。 Further, the present invention is characterized in that, in the above invention, the range distribution means distributes the plurality of data to any one of the plurality of ranges divided at equal intervals.
また、本発明は、上記の発明において、前記範囲振り分け手段は、二の累乗の範囲に区分けされた前記複数の範囲のいずれかに前記複数のデータを振り分けることを特徴とする。 Also, the present invention is characterized in that, in the above invention, the range distribution means distributes the plurality of data to any one of the plurality of ranges divided into power-of-two ranges.
また、本発明は、上記の発明において、前記範囲振り分け手段は、前記複数のデータ内における各データ値の分布密度に応じて区分けされた前記複数の範囲のいずれかに前記複数のデータを振り分けることを特徴とする。 Further, in the present invention according to the above invention, the range distribution unit distributes the plurality of data to any of the plurality of ranges divided according to a distribution density of each data value in the plurality of data. It is characterized by.
また、本発明は、複数のデータからメジアン値を算出するメジアン値算出装置に適用するメジアン値算出方法であって、前記複数のデータそれぞれを各データ値に応じて、所定の値の範囲に区分けされた複数の範囲のいずれかにを振り分ける範囲振り分け工程と、前記複数のデータそれぞれが前記範囲振り分け工程によって振り分けられた前記複数の範囲から、前記複数のデータの中心に位置するデータが振り分けられた範囲を中心範囲として検出する中心範囲検出工程と、前記中心範囲検出工程によって検出された中心範囲の値に基づいて前記中心範囲の中心の値をメジアン値として近似的に算出する近似メジアン値算出工程とを含んだことを特徴とする。 The present invention is also a median value calculation method applied to a median value calculation device for calculating a median value from a plurality of data, wherein each of the plurality of data is divided into a predetermined value range according to each data value. A range distribution step of allocating to any of the plurality of ranges, and data located at the center of the plurality of data are distributed from the plurality of ranges in which each of the plurality of data is distributed by the range distribution step a central range detection step of detecting a range around range, approximate median value calculation step of approximately calculating the value of the center of the center range based on the value of the center range detected by the central range detecting step as a median value wherein the containing and.
また、本発明は、複数のデータからメジアン値を算出する方法をコンピュータに実行させるメジアン値算出プログラムであって、前記コンピュータに、前記複数のデータそれぞれを各データ値に応じて、所定の値の範囲に区分けされた複数の範囲のいずれかにを振り分ける範囲振り分け手順と、前記複数のデータそれぞれが前記範囲振り分け手順によって振り分けられた前記複数の範囲から、前記複数のデータの中心に位置するデータが振り分けられた範囲を中心範囲として検出する中心範囲検出手順と、前記中心範囲検出手順によって検出された中心範囲の値に基づいて前記中心範囲の中心の値をメジアン値として近似的に算出する近似メジアン値算出手順とを実行させることを特徴とする。 The present invention is also a median value calculation program for causing a computer to execute a method for calculating a median value from a plurality of data, wherein the computer sets each of the plurality of data to a predetermined value according to each data value. A range distribution procedure for allocating one of a plurality of ranges divided into ranges, and data located at the center of the plurality of data from the plurality of ranges in which each of the plurality of data is distributed by the range distribution procedure a central range detection procedure for detecting a distribution obtained range centered range, approximate median of approximately calculating the value of the center of the center range based on the value of the detected center range by said central range detection procedure as the median value A value calculation procedure is executed.
本発明によれば、複数のデータ内の各データをその値に応じて所定の値に区切った複数の範囲のいずれかに振り分け、その複数の範囲から複数のデータの中心に位置するデータ値が振り分けられた中心範囲を検出した後、その中心範囲からメジアン値を近似的に算出するので、簡易にメジアン値を算出することが可能となる。そして、従来、メジアン値を算出する場合に行われていたデータのソート処理を必要としないので、ハードウェア上で複雑なソート回路を構築することなく簡易にメジアン値を算出することも可能となる。 According to the present invention , each data in a plurality of data is assigned to one of a plurality of ranges divided into predetermined values according to the value, and a data value located at the center of the plurality of data from the plurality of ranges is determined. After the distributed central range is detected, the median value is approximately calculated from the central range, so that the median value can be easily calculated. In addition, since the sort processing of data that is conventionally performed when calculating the median value is not required, it is possible to easily calculate the median value without constructing a complicated sort circuit on hardware. .
また、本発明によれば、複数のデータを振り分ける複数の範囲を等間隔に区分けするので、分散したデータ値を含む複数のデータを効率的に振り分けることが可能となる。 In addition, according to the present invention , since a plurality of ranges to which a plurality of data are distributed are divided at equal intervals, a plurality of data including distributed data values can be efficiently distributed.
また、本発明によれば、複数のデータを振り分ける複数の範囲を二の累乗の範囲に区分けするので、データ値が広範囲にわたるデータを含む複数のデータを効率的に振り分けることが可能となる。 Further, according to the present invention , since a plurality of ranges into which a plurality of data are distributed are divided into power-of-two ranges, a plurality of data including data having a wide range of data values can be efficiently distributed.
また、本発明によれば、複数のデータを振り分ける複数の範囲を複数のデータ値の分布密度に応じた範囲に区分けするので、データ値の分布に応じて複数のデータをより効率的に振り分けることが可能となる。 In addition, according to the present invention , since a plurality of ranges for distributing a plurality of data are divided into ranges according to the distribution density of a plurality of data values, a plurality of data can be distributed more efficiently according to the distribution of data values. Is possible.
また、本発明によれば、中心範囲の上限と下限の値の平均値としてメジアン値を近似的に算出するので、簡易にメジアン値を算出することが可能となる。 In addition, according to the present invention , the median value is approximately calculated as the average value of the upper and lower limits of the center range, so that the median value can be easily calculated.
また、本発明によれば、中心範囲の上限と下限の値の平均値に係数を乗じてメジアン値を近似的に算出するので、複数のデータの正規化後の用途に応じたメジアン値の調整が可能となる。 In addition, according to the present invention , the median value is approximately calculated by multiplying the average value of the upper and lower limits of the central range by a coefficient, so that adjustment of the median value according to the use after normalization of a plurality of data Is possible.
以下に、添付図面を参照して本発明に係るメジアン値算出装置、メジアン値算出方法およびメジアン値算出プログラムの好適な実施の形態を詳細に説明する。 Hereinafter, preferred embodiments of a median value calculation apparatus, a median value calculation method, and a median value calculation program according to the present invention will be described in detail with reference to the accompanying drawings.
[概要および特徴(実施例1)]
以下の実施例1では、実施例1に係るメジアン値算出装置の概要および特徴、メジアン値算出装置の構成および処理を説明し、最後に実施例1による効果を説明する。
[Outline and Features (Example 1)]
In the following first embodiment, the outline and features of the median value calculation apparatus according to the first embodiment, the configuration and processing of the median value calculation apparatus will be described, and finally the effects of the first embodiment will be described.
まず、図1を用いて、メジアン値算出装置の概要および特徴を説明する。図1はメジアン値算出装置の概要を示す図である。 First, the outline and features of the median value calculation apparatus will be described with reference to FIG. FIG. 1 is a diagram showing an outline of a median value calculation apparatus.
メジアン値算出装置は、複数のデータからメジアン値を算出することを概要とする。そして、メジアン値算出装置は、複数のデータ内の各データをその値に応じて、所定の値で区切った複数の範囲のいずれかに振り分け、その複数の範囲から複数のデータの中心に位置するデータが振り分けられた中心範囲を検出した後、その中心範囲からメジアン値を近似的に算出する点に特徴がある。 An outline of the median value calculation device is to calculate a median value from a plurality of data. Then, the median value calculation device distributes each data in the plurality of data to one of a plurality of ranges divided by a predetermined value according to the value, and is located at the center of the plurality of data from the plurality of ranges. It is characterized in that after detecting a central range to which data is distributed, a median value is approximately calculated from the central range.
例えば、図1に示すように、総数101個のデータを10刻みの等間隔とした11の範囲に振り分ける場合について説明する。まず、101個のデータそれぞれを各データの値に応じて、等間隔に区分けされた11の範囲に振り分けられる。次に、11の範囲に振り分けられた各データの個数を順次累積カウントして、データ総数の中心に位置するカウント数51番目のデータが含まれる範囲5を中心範囲として検出する。続いて、中心範囲として検出された範囲5における上限値50と下限値40との平均値である45をメジアン値として近似的に算出する。したがって、複数のデータから、簡易にメジアン値を算出することが可能となる。
For example, as shown in FIG. 1, a case will be described in which a total of 101 data is distributed into 11 ranges at equal intervals of 10 steps. First, each of the 101 pieces of data is distributed into 11 ranges divided at equal intervals according to the value of each data. Next, the number of each data allocated to the range of 11 is sequentially cumulatively counted, and the range 5 including the 51st count number data located at the center of the total number of data is detected as the central range. Subsequently, 45 which is an average value of the
[メジアン値算出装置の構成(実施例1)]
次に、図1の他、図2や図3を用いて、実施例1に係るメジアン値算出装置の構成を説明する。図2は、実施例1に係るメジアン値算出装置の構成を示すブロック図であり、図3は、記憶部の範囲振り分けテーブルの構成を示す図である。
[Configuration of Median Value Calculation Device (Example 1)]
Next, the configuration of the median value calculation apparatus according to the first embodiment will be described with reference to FIG. 2 and FIG. 3 in addition to FIG. FIG. 2 is a block diagram illustrating a configuration of the median value calculation apparatus according to the first embodiment, and FIG. 3 is a diagram illustrating a configuration of a range distribution table of the storage unit.
図2に示すように、メジアン値算出装置10は、入力部11、出力部12、入出力制御IF部13、記憶部14および制御部15を所定のバスを介して接続して構成される。以下にこれら各部の処理を説明する。
As shown in FIG. 2, the median
入力部11は、各種情報の入力を受け付ける手段であり、操作パネルやスイッチ、キーボード、ボタンなどで構成される。例えば、図4に示すように、範囲振り分け指示画面において、振り分け範囲を初期値0、間隔値10の等間隔とする設定を操作者から受け付ける。
The
出力部12は、各種の情報を出力する出力手段であり、モニタ(若しくはディスプレイや操作パネル)やスピーカ、ランプなどで構成される。例えば、後述するデータ記憶部14aに記憶された処理結果(メジアン値算出処理結果、データの正規化処理結果)などを出力する。
The
入出力制御IF部13は、データの転送を制御する手段であり、例えば、後述する制御部15で処理されたデータを記憶した後述する記憶部14から読み出し、出力部12へデータの送信を行う。
The input / output
記憶部14は、入出力データおよび制御部15による各種処理データを格納するメモリであり、図2に示すように、データ記憶部14aおよび振り分けテーブル14bを備える。かかる記憶部14の中で、データ記憶部14aは、まず、入力部11から入力された複数のデータを記憶する。また、後述する近似メジアン値算出部15cにより算出されたメジアン値等を記憶する。そして、振り分けテーブル14bは、後述する範囲振り分け処理部15aによる処理データを記憶する。例えば、図3に示すように、初期値が0で10刻みの等間隔に区切られた範囲1から範囲11に対応付けて範囲振り分け処理部15aによって振り分けられたデータの個数を記憶するとともに、各範囲のデータの個数を累積したデータ総数を記憶する。
The
制御部15は、各種の処理手順を規定したプログラムや制御データを格納するための内部メモリを有し、これらによって種々の処理を実行するプロセッサであり、特に本発明と密接に関連するものとしては、図2に示すように、範囲振り分け処理部15aと、中心範囲検出部15bと、近似メジアン値算出部15cを備える。なお、範囲振り分け処理部15aは特許請求の範囲記載の「範囲振り分け手段」に対応し、中心範囲検出部15bは同じく「中心範囲検出手段」に対応し、近似メジアン値算出部15cは「近似メジアン値算出手段」に対応する。
The
かかる制御部の中で、範囲振り分け処理部15aは、データ記憶部14aに記憶された複数のデータを読み出し、各データの値に応じて所定の値に区切られた複数の範囲に振り分ける処理部である。具体的には、範囲振り分け処理部15aは、データ記憶部14aから複数のデータを読み込み、複数のデータそれぞれを各データ値に応じて所定の値に区切られた複数の範囲に振り分けるとともに、振り分けられたデータの個数をカウントする。例えば、図1や図3に示すように、複数のデータを初期値が0で10刻みの等間隔に区切られた範囲1から範囲11に振り分け、各範囲に振り分けられたデータの個数をカウントする。
Among such control units, the range
中心範囲検出部15bは、振り分けテーブル14bから範囲振り分け処理部15aの処理データを読み出し、中心範囲を検出する処理部である。具体的には、中心範囲検出部15bは、振り分けテーブル14bから範囲振り分け処理部15aによる処理結果を読み込み、各範囲に振り分けられたデータの個数を順次累積カウントし、データ総数の中心に位置するカウント数に対応する振り分け範囲を中心範囲として検出する。例えば、図1に示すように、範囲振り分け処理部15aによって範囲1から範囲11に振り分けられたデータの個数を順次累積カウントし、データ総数が101である複数のデータの中心に位置する51カウント目のデータが振り分けられている範囲5を中心範囲として検出する。
The center
近似メジアン値算出部15cは、中心範囲検出部15bによって検出された中心範囲から近似メジアン値を算出する処理部である。具体的には、近似メジアン値算出部15cは、データ記憶部14aから中心範囲検出部15bによる検出範囲を読み込み、その検出範囲から近似メジアン値を算出する。例えば、図1に示すように、中心範囲の上限値50と下限値40との平均値である45を求めることにより、メジアン値を近似的に算出する。データ正規化部15dは、近似メジアン値算出部15cによって算出されたメジアン値からデータを正規化する処理部である。
The approximate median
[メジアン値算出装置の処理手順(実施例1)]
次に、図1の他、図4および図5を用いて、近似メジアン値算出処理の流れを示す。図4は、データの範囲振り分け範囲を指示する画面を表す図、図5は、近似メジアン値算出処理の流れを示すフローチャートである。
[Processing Procedure of Median Value Calculation Device (Example 1)]
Next, FIG. 4 and FIG. 5 in addition to FIG. 1 show the flow of the approximate median value calculation process. FIG. 4 is a diagram showing a screen for instructing a data range distribution range, and FIG. 5 is a flowchart showing a flow of approximate median value calculation processing.
図5に示すように、範囲振り分け処理部15aは、入出力処理IF部13を介して入力部11から範囲振り分け指示を受ける(ステップS501肯定)。範囲振り分け指示は、例えば、図4に示すように、入力部11に表示される範囲振り分け指示画面において振り分け範囲を初期値0、間隔値10の等間隔に設定してスタートボタンを押すことにより実行われる。これに続いて、範囲振り分け指示を受けた範囲振り分け処理部15aは、入出力制御IF部13を介してデータ記憶部14aに記憶された全データを読み込む(ステップS502)。
As illustrated in FIG. 5, the range
これに続いて、範囲振り分け処理部15aは、読み込んだ全データの範囲振り分け処理を行う(ステップS503)。具体的には、図1に示すように、範囲振り分け処理部15aは、各データをそれぞれデータの値に応じて10刻みの等間隔とした範囲1、2等に順次振り分け、各範囲に振り分けられたデータ数およびデータ総数をカウントする。その結果、図3に示すように、初期値が0で10刻みの等間隔に区切られた範囲1から範囲11に対応付けて範囲振り分け処理部15aによって振り分けられたデータの個数とともに、各範囲のデータの個数を累積したデータ総数を、記憶部14の振り分けテーブル14bに記憶する。
Subsequently, the range
これに続いて、中心範囲検出部15bは、振り分けテーブル14bから処理データを読み込み、中心範囲検出処理を行う(ステップS504)。具体的には、図1に示すように、中心範囲検出部15bは、各範囲のカウントデータ数を範囲1から順次累積カウントして、データ総数が101である複数のデータの中心に位置する累積カウント数51カウント目のデータが含まれる範囲5(40以上50未満)を中心範囲として検出する。
Subsequently, the center
これに続いて、近似メジアン値算出部は、データ記憶部14aに記憶された中心範囲検出部15bの検出処理データを参照して近似メジアン値算出処理を行う(ステップS505)。具体的には、図1に示すように、近似メジアン値算出部15cは、中心範囲として検出した範囲5(40以上〜50未満)の上限値50と下限値40との平均値である45をメジアン値として近似的に算出する。そして、近似メジアン値算出部15cは、処理結果を入出力制御IF部を介して出力部12から出力し、近似メジアン値算出処理を終了する。
Subsequently, the approximate median value calculation unit performs an approximate median value calculation process with reference to the detection processing data of the center
[実施例1の効果]
上述してきたように、実施例1によれば、複数のデータ内の各データをその値に応じて所定の値に区切った複数の範囲のいずれかに振り分け、その複数の範囲から複数のデータの中心に位置するデータ値が振り分けられた中心範囲を検出した後、その中心範囲からメジアン値を近似的に算出するので、簡易にメジアン値を算出することが可能となる。そして、メジアン値を算出する際に行われていたデータのソート処理を必要としないので、ハードウェア上で複雑なソート回路を構築することなく簡易にメジアン値を算出することも可能となる。
[Effect of Example 1]
As described above, according to the first embodiment, each data in a plurality of data is distributed to any one of a plurality of ranges divided into predetermined values according to the values, and a plurality of data is distributed from the plurality of ranges. Since the median value is approximately calculated from the central range after detecting the central range to which the data value located at the center is distributed, the median value can be easily calculated. Further, since the sort processing of data that is performed when calculating the median value is not required, it is possible to easily calculate the median value without constructing a complicated sort circuit on hardware.
また、上記の実施例1によれば、複数のデータを振り分ける複数の範囲を等間隔にするので、分散したデータ値を含む複数のデータを効率的に振り分けることが可能となる。 Further, according to the first embodiment described above, since a plurality of ranges in which a plurality of data are distributed are equally spaced, a plurality of data including distributed data values can be efficiently distributed.
さらに、上記の実施例1よれば、中心範囲における上限値と下限値との平均値としてメジアン値を近似的に算出するので、簡易にメジアン値を算出することが可能となる。 Furthermore, according to the first embodiment, since the median value is approximately calculated as an average value of the upper limit value and the lower limit value in the center range, the median value can be easily calculated.
さて、これまで実施例1に係るメジアン値算出装置について説明したが、本発明は上述した実施例以外にも、種々の異なる形態にて実施されてよいものである。そこで、以下では実施例2に係るメジアン値算出装置として、種々の異なる形態を(1)〜(4)に区分けして説明する。 Although the median value calculation apparatus according to the first embodiment has been described so far, the present invention may be implemented in various different forms other than the above-described embodiments. Therefore, in the following, as the median value calculation apparatus according to the second embodiment, various different modes are classified into (1) to (4) and described.
(1)データ振り分け範囲の変更
上記の実施例1では、データを振り分ける範囲を10刻みの等間隔とする場合を説明したが(図1参照)、本発明はこれに限定されるものではなく、等間隔の幅を1、100、1000などの値にしてもよい。
(1) Change of data distribution range In the first embodiment described above, a case has been described in which the data distribution range is set at equal intervals of 10 (see FIG. 1), but the present invention is not limited to this. The equally spaced width may be set to a value such as 1, 100, 1000, or the like.
また、上記の実施例1では、データを振り分ける範囲を等間隔としたが、本発明はこれに限定されるものではなく、例えば、図6に示すように、各データを振り分ける範囲を二の累乗の範囲にするようにしてもよい。このように、複数のデータを振り分ける所定の値で区切られた複数の範囲を二累乗の範囲にすれば、データ値が広範囲にわたるデータから構成される複数のデータを効率的に振り分けることが可能となる。 In the first embodiment, the range in which the data is distributed is set at an equal interval. However, the present invention is not limited to this. For example, as shown in FIG. 6, the range in which each data is distributed is a power of two. You may make it be the range of. In this way, if a plurality of ranges divided by a predetermined value for distributing a plurality of data are set to a power-of-two range, a plurality of data composed of data having a wide range of data values can be efficiently distributed. Become.
なお、この場合において、近似メジアン値算出部15cは、中心範囲のビット列を10進法に変換してから上記の実施例1に記載の方法により算出することもできるが、ビット列のまま簡易に算出するようにしてもよい。具体的には、図6に示すように、ビット列に1が現れる最左部の右を1にしたビットを近似メジアン値として簡易に算出することができる。
In this case, the approximate median
また、上記の実施例1では、データを振り分ける範囲を等間隔としていたが、本発明はこれに限定されるものではなく、複数のデータ内の各データの値の分布密度に応じて振り分け範囲の各幅を変えるようにしてもよい。例えば、図7に示すように、複数のデータ内の各データ値の分布密度が150〜250間で高い場合には、その150〜250間を範囲3や範囲9のように25刻みや、範囲4〜範囲8のような10刻みに区分けされた複数の範囲にしてもよい。そして、データ値の分布密度が低い1〜100や300〜400間を区分けせずに範囲1や範囲11の一範囲としてもよい。このように、各データを振り分ける複数の範囲を複数のデータ内の各データ値の分布密度に応じて区分けした複数の範囲にすれば、データ値の分布密度に応じて複数のデータをより効率的に振り分けることが可能となる。
In the first embodiment, the range in which the data is distributed is equally spaced. However, the present invention is not limited to this, and the range of the distribution range is determined according to the distribution density of each data value in the plurality of data. Each width may be changed. For example, as shown in FIG. 7, when the distribution density of each data value in a plurality of data is high between 150 and 250, the range between 150 and 250 is divided into 25 increments such as
(2)メジアン値の算出
上記の実施例1では、メジアン値は中心範囲の上限と下限の値の平均値で求めていたが、平均値の近傍の値をメジアン値としてもよい。また、中心範囲から算出した平均値に適正な係数を掛け合わせて算出された値をメジアン値として近似的に算出してもよい。これにより、複数のデータ正規化後の用途に応じたメジアン値の調整が可能となる。例えば、MPEG方式により画像データの圧縮する際、適正な係数を掛け合わせてメジアン値を調整することにより、画像データの圧縮率を上げてエンコード時のビット量を低くすることができるので、エンコーダーの安全性、破綻防止を図ることができる。
(2) Calculation of median value In the above-described first embodiment, the median value is obtained by the average value of the upper limit value and the lower limit value of the central range. However, a value near the average value may be used as the median value. Alternatively, a value calculated by multiplying an average value calculated from the center range by an appropriate coefficient may be approximately calculated as a median value. As a result, the median value can be adjusted according to the use after the data normalization. For example, when compressing image data by the MPEG method, the median value is adjusted by multiplying an appropriate coefficient, thereby increasing the compression rate of the image data and reducing the bit amount during encoding. Safety and failure prevention can be achieved.
(3)装置構成
図2に示したメジアン値算出装置10の各構成要素は機能的な区分けであり、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、メジアン値算出装置10の分散や統合の具体的形態は図示のものに限られず、例えば、範囲振り分け処理部15aと中心範囲検出部15bとを統合し、または、中心範囲検出部15bと近似メジアン値算出部15cとを統合し、もしくは、近似メジアン値算出部15cを算出項目ごとに分散するなど、各構成要素の全部または一部を各種の負荷や使用状況に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。さらに、各装置にて行われる各処理機能は、その全部または任意の一部が、CPUおよび当該CPUにて解析実行されるプログラムにて実現され、あるいは、ワイヤードロジックによるハードウェアとして実現され得る。
(4)メジアン値算出プログラム
ところで、上記の実施例1で説明した各種の処理は、あらかじめ用意されたプログラムをコンピュータで実行することによって実現することができる。そこで、以下では、図8を用いて、上記の実施例1と同様の機能を有するメジアン値算出プログラムを実行するコンピュータの一例を説明する。図8は、メジアン値算出プログラムを実行するコンピュータを示す図である。
(3) Device Configuration Each component of the median
(4) Median Value Calculation Program Various processes described in the first embodiment can be realized by executing a program prepared in advance on a computer. In the following, an example of a computer that executes a median value calculation program having the same function as that of the first embodiment will be described with reference to FIG. FIG. 8 is a diagram illustrating a computer that executes a median value calculation program.
同図に示すように、メジアン値算出装置としてのコンピュータ20は、操作パネル21、ディスプレイ22、HDD23、RAM24、ROM25およびCPU26をバス27で接続して構成される。ここで、操作パネル21は図2に示した入力部11、ディスプレイ22は同じく出力部12に対応する。
As shown in the figure, a computer 20 as a median value calculation device is configured by connecting an
そして、ROM25には、上記の実施例1と同様の機能を発揮するメジアン値算出プログラム、つまり、図8に示すように、範囲振り分けプログラム25a、中心範囲検出プログラム25b、近似メジアン値算出プログラム25c、データ正規化プログラム25dが予め記憶されている。なお、25a〜25dについては、図2に示したメジアン値算出装置の10の各構成要素と同様、適宜統合または分散してもよい。
The ROM 25 has a median value calculation program that exhibits the same function as in the first embodiment, that is, as shown in FIG. 8, a
そして、CPU26が、これらのプログラム25a〜25dをROM25から読み出して実行することで、図8に示すように、各プログラム25a〜25dは、範囲振り分けプロセス26a、中心範囲検出プロセス26b、近似メジアン値算出プロセス26cおよびデータ正規化プロセス26dとして機能するようになる。各プロセス26a〜26dは、図2に示した範囲振り分け処理部15a、中心範囲検出部15b、近似メジアン値算出部15cおよびデータ正規化部15dにそれぞれ対応する。
Then, the
また、HDD23には、図8に示すように、データテーブル23aと、振り分けテーブル23bとが設けられている。なお、データテーブル23aおよび振り分けテーブル23bは、図2に示したデータ記憶部14aおよび振り分けテーブル14bにそれぞれ対応する。そして、CPU26は、データテーブル14aおよび振り分けテーブル23bに対して各処理結果を登録するとともに、データテーブル23aおよび振り分けテーブル23bからデータ群24aや振り分けテーブルデータ24bを読み出してRAM24に格納し、RAM24に格納されたデータ群24aや振り分けテーブルデータ24bに基づいて各処理を実行する。
Further, as shown in FIG. 8, the
ところで、上記した各プログラム25a〜25dについては、必ずしも最初からROM25に記憶させておく必要はなく、例えば、コンピュータ20に挿入されるフレキシブルディスク(FD)、CD−ROM、MOディスク、DVDディスク、光磁気ディスク、ICカードなどの「可搬用の物理媒体」、または、コンピュータ20の内外に備えられるハードディスクドライブ(HDD)などの「固定用の物理媒体」、さらには、公衆回線、インターネット、LAN、WANなどを介してコンピュータ20に接続される「他のコンピュータ(またはサーバ)」などに各プログラムを記憶させておき、コンピュータ20がこれらから各プログラムを読み出して実行するようにしてもよい。
By the way, the above-described
以上のように、本発明に係るメジアン値算出装置、メジアン値算出方法およびメジアン値算出プログラムは、複数のデータから簡易にメジアン値を算出する場合に有用であり、特に、メジアン値を算出する際に必要なデータのソート処理を必要としないので、ソート処理のための複雑なソート回路構築することなく、ハードウェア上で簡易にメジアン値を算出する場合に適している。 As described above, the median value calculation apparatus, the median value calculation method, and the median value calculation program according to the present invention are useful when simply calculating the median value from a plurality of data, and in particular, when calculating the median value. This is suitable for the case where the median value is simply calculated on the hardware without constructing a complicated sort circuit for the sort process.
10 メジアン値算出装置
11 入力部
12 出力部
13 入出力IF制御部
14 記憶部
14a データ記憶部
14b 振り分けテーブル
15 制御部
15a 範囲振り分け処理部
15b 中心範囲検出部
15c 近似メジアン値算出部
15d データ正規化部
20 コンピュータ
21 操作パネル
22 ディスプレイ
23 HDD(Hard Disk Drive)
24 RAM(Random Access Memory)
25 ROM(Read Only Memory)
26 CPU(Central Processing Unit)
DESCRIPTION OF
24 RAM (Random Access Memory)
25 ROM (Read Only Memory)
26 CPU (Central Processing Unit)
Claims (7)
前記複数のデータそれぞれを各データ値に応じて、所定の値の範囲に区分けされた複数の範囲のいずれかにを振り分ける範囲振り分け手段と、
前記複数のデータそれぞれが前記範囲振り分け手段によって振り分けられた前記複数の範囲から、前記複数のデータの中心に位置するデータが振り分けられた範囲を中心範囲として検出する中心範囲検出手段と、
前記中心範囲検出手段によって検出された中心範囲の値に基づいて前記中心範囲の中心の値をメジアン値として近似的に算出する近似メジアン値算出手段と
を備えたことを特徴とするメジアン値算出装置。 A median value calculation device for calculating a median value from a plurality of data,
Range distribution means for distributing each of the plurality of data according to each data value to any of a plurality of ranges divided into predetermined value ranges;
Center range detection means for detecting, as a central range, a range in which data located at the center of the plurality of data is distributed from the plurality of ranges in which each of the plurality of data is distributed by the range distribution means;
An approximate median value calculating means for approximately calculating the value of the center of the center range based on the value of the center range detected by said central range detecting means as a median value
The median value calculation apparatus characterized by comprising a.
前記複数のデータそれぞれを各データ値に応じて、所定の値の範囲に区分けされた複数の範囲のいずれかにを振り分ける範囲振り分け手段と、
前記複数のデータそれぞれが前記範囲振り分け手段によって振り分けられた前記複数の範囲から、前記複数のデータの中心に位置するデータが振り分けられた範囲を中心範囲として検出する中心範囲検出手段と、
前記中心範囲検出手段によって検出された中心範囲の中心の値に係数を乗じることによってメジアン値を近似的に算出する近似メジアン値算出手段と
を備えたことを特徴とするメジアン値算出装置。 A median value calculation device for calculating a median value from a plurality of data,
Range distribution means for distributing each of the plurality of data according to each data value to any of a plurality of ranges divided into predetermined value ranges;
Center range detection means for detecting, as a central range, a range in which data located at the center of the plurality of data is distributed from the plurality of ranges in which each of the plurality of data is distributed by the range distribution means;
Approximate median value calculating means for approximately calculating a median value by multiplying a coefficient of the center value of the central range detected by the central range detecting means ;
The median value calculation apparatus characterized by comprising a.
前記複数のデータそれぞれを各データ値に応じて、所定の値の範囲に区分けされた複数の範囲のいずれかにを振り分ける範囲振り分け工程と、
前記複数のデータそれぞれが前記範囲振り分け工程によって振り分けられた前記複数の範囲から、前記複数のデータの中心に位置するデータが振り分けられた範囲を中心範囲として検出する中心範囲検出工程と、
前記中心範囲検出工程によって検出された中心範囲の値に基づいて前記中心範囲の中心の値をメジアン値として近似的に算出する近似メジアン値算出工程と
を含んだことを特徴とするメジアン値算出方法。 A median value calculation method applied to a median value calculation device that calculates a median value from a plurality of data,
A range distribution step of distributing each of the plurality of data according to each data value to any of a plurality of ranges divided into a predetermined value range;
A center range detection step of detecting, as a central range, a range in which data located at the center of the plurality of data is distributed from the plurality of ranges in which each of the plurality of data is distributed by the range distribution step;
An approximate median value calculation step of approximately calculating the value of the center of the center range based on the value of the center range detected by the central range detecting step as a median value
The median value calculation method characterized by including.
前記コンピュータに、
前記複数のデータそれぞれを各データ値に応じて、所定の値の範囲に区分けされた複数の範囲のいずれかにを振り分ける範囲振り分け手順と、
前記複数のデータそれぞれが前記範囲振り分け手順によって振り分けられた前記複数の範囲から、前記複数のデータの中心に位置するデータが振り分けられた範囲を中心範囲として検出する中心範囲検出手順と、
前記中心範囲検出手順によって検出された中心範囲の値に基づいて前記中心範囲の中心の値をメジアン値として近似的に算出する近似メジアン値算出手順と
を実行させることを特徴とするメジアン値算出プログラム。 A median value calculation program for causing a computer to execute a method of calculating a median value from a plurality of data,
In the computer,
A range distribution procedure for distributing each of the plurality of data according to each data value to any of a plurality of ranges divided into a predetermined value range;
A center range detection procedure for detecting, as a central range, a range in which data located at the center of the plurality of data is distributed from the plurality of ranges in which each of the plurality of data is distributed by the range distribution procedure;
An approximate median value calculating procedure for approximately calculating the value of the center of the center range based on the value of the detected center range by said central range detection procedure as the median value
The median value calculation program characterized by performing this.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005122781A JP4584010B2 (en) | 2005-04-20 | 2005-04-20 | Median value calculation apparatus, median value calculation method, and median value calculation program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005122781A JP4584010B2 (en) | 2005-04-20 | 2005-04-20 | Median value calculation apparatus, median value calculation method, and median value calculation program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006301966A JP2006301966A (en) | 2006-11-02 |
| JP4584010B2 true JP4584010B2 (en) | 2010-11-17 |
Family
ID=37470177
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005122781A Expired - Fee Related JP4584010B2 (en) | 2005-04-20 | 2005-04-20 | Median value calculation apparatus, median value calculation method, and median value calculation program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4584010B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62109171A (en) * | 1985-11-08 | 1987-05-20 | Sumitomo Electric Ind Ltd | Median calculation method and circuit |
| JP2004164565A (en) * | 2002-09-26 | 2004-06-10 | Yokogawa Electric Corp | Numerical value search device and numerical value search method |
-
2005
- 2005-04-20 JP JP2005122781A patent/JP4584010B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2006301966A (en) | 2006-11-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10668386B2 (en) | System, method, and computer program product for simultaneously determining settings for a plurality of parameter variations | |
| CN111352698B (en) | JVM parameter adjusting method and device | |
| JP2003178040A (en) | Website configuration decision support method | |
| JP2011138194A (en) | Information processing device, information processing method, and program | |
| CN106850692B (en) | Method and device for determining streaming media playing mode | |
| JP6988827B2 (en) | Abnormality identification system, method and program | |
| CN106294490A (en) | The feature Enhancement Method of data sample and device and classifier training method and apparatus | |
| JP4584010B2 (en) | Median value calculation apparatus, median value calculation method, and median value calculation program | |
| JPWO2015159336A1 (en) | Information processing apparatus, flow control parameter calculation method, and program | |
| JP5957507B2 (en) | Data pattern analysis optimization processing apparatus and data pattern analysis optimization processing method | |
| JP4504346B2 (en) | Trouble factor detection program, trouble factor detection method, and trouble factor detection device | |
| JP6879203B2 (en) | Data processing equipment, data processing methods, and programs | |
| WO2020178938A1 (en) | Information processing device, information processing method, and information processing program | |
| WO2020152843A1 (en) | Processing device, processing method and program | |
| US9544684B2 (en) | Sound determination unit based on mean amplitudes of partial sound segments | |
| US20170078178A1 (en) | Delay information output device, delay information output method, and non-transitory computer-readable recording medium | |
| JP6852004B2 (en) | Data analysis system, data analysis method, and program | |
| JP2007164346A (en) | Decision tree changing method, abnormality determination method and program | |
| JP7606925B2 (en) | Information processing device, program, and defect investigation method | |
| JP4800846B2 (en) | Topic degree calculation method and apparatus, program, and computer-readable recording medium | |
| JP2021040221A (en) | Communication quality analysis system and communication quality analysis method | |
| JP2010128894A (en) | Database generation device, method of generating database, and computer program | |
| JP6021648B2 (en) | Test result judgment support device | |
| JP2016218719A (en) | Information collection apparatus, information collection method, and program | |
| JP2010128892A (en) | Database generation device, database generation method, and computer program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080215 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100413 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100610 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20100831 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100901 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130910 Year of fee payment: 3 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |