Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4584010B2 - Median value calculation apparatus, median value calculation method, and median value calculation program - Google Patents
[go: Go Back, main page]

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 PDF

Info

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
Application number
JP2005122781A
Other languages
Japanese (ja)
Other versions
JP2006301966A (en
Inventor
亮平 門脇
Original Assignee
アイベックステクノロジー株式会社
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 アイベックステクノロジー株式会社 filed Critical アイベックステクノロジー株式会社
Priority to JP2005122781A priority Critical patent/JP4584010B2/en
Publication of JP2006301966A publication Critical patent/JP2006301966A/en
Application granted granted Critical
Publication of JP4584010B2 publication Critical patent/JP4584010B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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.

特開2003−37843号公報JP 2003-37843 A

しかしながら、メジアン値を用いた従来技術では、メジアン値を算出するにはデータのソート処理等が必要なことから、メジアン値を求めるのに多大な時間を要し、簡易にメジアン値を算出することができないという問題がある。なお、ハードウェア上でメジアン値を算出する場合には、データのソート処理に複雑なソート回路を構築する必要があるという問題がある。   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 upper limit value 50 and the lower limit value 40 in the range 5 detected as the central range is approximately calculated as a median value. Therefore, it is possible to easily calculate the median value from a plurality of data.

[メジアン値算出装置の構成(実施例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 value calculation device 10 is configured by connecting an input unit 11, an output unit 12, an input / output control IF unit 13, a storage unit 14, and a control unit 15 via a predetermined bus. The processing of these units will be described below.

入力部11は、各種情報の入力を受け付ける手段であり、操作パネルやスイッチ、キーボード、ボタンなどで構成される。例えば、図4に示すように、範囲振り分け指示画面において、振り分け範囲を初期値0、間隔値10の等間隔とする設定を操作者から受け付ける。   The input unit 11 is a unit that receives input of various types of information, and includes an operation panel, a switch, a keyboard, buttons, and the like. For example, as shown in FIG. 4, on the range distribution instruction screen, a setting for setting the distribution range as an equal interval of an initial value 0 and an interval value 10 is received from the operator.

出力部12は、各種の情報を出力する出力手段であり、モニタ(若しくはディスプレイや操作パネル)やスピーカ、ランプなどで構成される。例えば、後述するデータ記憶部14aに記憶された処理結果(メジアン値算出処理結果、データの正規化処理結果)などを出力する。   The output unit 12 is an output unit that outputs various types of information, and includes a monitor (or display or operation panel), a speaker, a lamp, and the like. For example, the processing result (median value calculation processing result, data normalization processing result) stored in the data storage unit 14a described later is output.

入出力制御IF部13は、データの転送を制御する手段であり、例えば、後述する制御部15で処理されたデータを記憶した後述する記憶部14から読み出し、出力部12へデータの送信を行う。   The input / output control IF unit 13 is a unit that controls data transfer. For example, the input / output control IF unit 13 reads out data processed by the control unit 15 (to be described later) from a storage unit 14 (to be described later) and transmits the data to the output unit 12. .

記憶部14は、入出力データおよび制御部15による各種処理データを格納するメモリであり、図2に示すように、データ記憶部14aおよび振り分けテーブル14bを備える。かかる記憶部14の中で、データ記憶部14aは、まず、入力部11から入力された複数のデータを記憶する。また、後述する近似メジアン値算出部15cにより算出されたメジアン値等を記憶する。そして、振り分けテーブル14bは、後述する範囲振り分け処理部15aによる処理データを記憶する。例えば、図3に示すように、初期値が0で10刻みの等間隔に区切られた範囲1から範囲11に対応付けて範囲振り分け処理部15aによって振り分けられたデータの個数を記憶するとともに、各範囲のデータの個数を累積したデータ総数を記憶する。   The storage unit 14 is a memory that stores input / output data and various types of processing data by the control unit 15, and includes a data storage unit 14a and a sorting table 14b as shown in FIG. In the storage unit 14, the data storage unit 14 a first stores a plurality of data input from the input unit 11. Further, the median value calculated by the approximate median value calculation unit 15c described later is stored. The distribution table 14b stores data processed by the range distribution processing unit 15a described later. For example, as shown in FIG. 3, the initial value is 0 and the number of data distributed by the range distribution processing unit 15a is stored in association with the range 1 to the range 11 divided at equal intervals of 10 increments. The total number of data obtained by accumulating the number of data in the range is stored.

制御部15は、各種の処理手順を規定したプログラムや制御データを格納するための内部メモリを有し、これらによって種々の処理を実行するプロセッサであり、特に本発明と密接に関連するものとしては、図2に示すように、範囲振り分け処理部15aと、中心範囲検出部15bと、近似メジアン値算出部15cを備える。なお、範囲振り分け処理部15aは特許請求の範囲記載の「範囲振り分け手段」に対応し、中心範囲検出部15bは同じく「中心範囲検出手段」に対応し、近似メジアン値算出部15cは「近似メジアン値算出手段」に対応する。   The control unit 15 is a processor that has an internal memory for storing programs and control data that define various processing procedures, and executes various processes using these programs, and is particularly closely related to the present invention. As shown in FIG. 2, a range distribution processing unit 15a, a center range detection unit 15b, and an approximate median value calculation unit 15c are provided. The range distribution processing unit 15a corresponds to “range distribution unit” described in the claims, the center range detection unit 15b also corresponds to “center range detection unit”, and the approximate median value calculation unit 15c includes “approximate median”. Corresponds to “value calculation means”.

かかる制御部の中で、範囲振り分け処理部15aは、データ記憶部14aに記憶された複数のデータを読み出し、各データの値に応じて所定の値に区切られた複数の範囲に振り分ける処理部である。具体的には、範囲振り分け処理部15aは、データ記憶部14aから複数のデータを読み込み、複数のデータそれぞれを各データ値に応じて所定の値に区切られた複数の範囲に振り分けるとともに、振り分けられたデータの個数をカウントする。例えば、図1や図3に示すように、複数のデータを初期値が0で10刻みの等間隔に区切られた範囲1から範囲11に振り分け、各範囲に振り分けられたデータの個数をカウントする。   Among such control units, the range distribution processing unit 15a is a processing unit that reads a plurality of data stored in the data storage unit 14a and distributes the data to a plurality of ranges divided into predetermined values according to the values of each data. is there. Specifically, the range distribution processing unit 15a reads a plurality of data from the data storage unit 14a, distributes each of the plurality of data into a plurality of ranges divided into predetermined values according to each data value, and the distribution is performed. Count the number of data. For example, as shown in FIG. 1 and FIG. 3, a plurality of data is allocated to a range 1 to a range 11 divided into equal intervals of 10 at an initial value of 0, and the number of data allocated to each range is counted. .

中心範囲検出部15bは、振り分けテーブル14bから範囲振り分け処理部15aの処理データを読み出し、中心範囲を検出する処理部である。具体的には、中心範囲検出部15bは、振り分けテーブル14bから範囲振り分け処理部15aによる処理結果を読み込み、各範囲に振り分けられたデータの個数を順次累積カウントし、データ総数の中心に位置するカウント数に対応する振り分け範囲を中心範囲として検出する。例えば、図1に示すように、範囲振り分け処理部15aによって範囲1から範囲11に振り分けられたデータの個数を順次累積カウントし、データ総数が101である複数のデータの中心に位置する51カウント目のデータが振り分けられている範囲5を中心範囲として検出する。   The center range detection unit 15b is a processing unit that reads the processing data of the range distribution processing unit 15a from the distribution table 14b and detects the center range. Specifically, the center range detection unit 15b reads the processing result of the range distribution processing unit 15a from the distribution table 14b, sequentially counts the number of data distributed to each range, and counts at the center of the total number of data. A distribution range corresponding to the number is detected as a central range. For example, as shown in FIG. 1, the number of data distributed from the range 1 to the range 11 by the range distribution processing unit 15a is sequentially accumulated, and the 51st count located at the center of a plurality of data whose total data is 101. The range 5 to which the data is distributed is detected as the central range.

近似メジアン値算出部15cは、中心範囲検出部15bによって検出された中心範囲から近似メジアン値を算出する処理部である。具体的には、近似メジアン値算出部15cは、データ記憶部14aから中心範囲検出部15bによる検出範囲を読み込み、その検出範囲から近似メジアン値を算出する。例えば、図1に示すように、中心範囲の上限値50と下限値40との平均値である45を求めることにより、メジアン値を近似的に算出する。データ正規化部15dは、近似メジアン値算出部15cによって算出されたメジアン値からデータを正規化する処理部である。   The approximate median value calculation unit 15c is a processing unit that calculates an approximate median value from the center range detected by the center range detection unit 15b. Specifically, the approximate median value calculation unit 15c reads the detection range by the center range detection unit 15b from the data storage unit 14a, and calculates the approximate median value from the detection range. For example, as shown in FIG. 1, the median value is approximately calculated by obtaining 45 which is an average value of the upper limit value 50 and the lower limit value 40 of the center range. The data normalization unit 15d is a processing unit that normalizes data from the median value calculated by the approximate median value calculation unit 15c.

[メジアン値算出装置の処理手順(実施例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 distribution processing unit 15a receives a range distribution instruction from the input unit 11 via the input / output processing IF unit 13 (Yes in step S501). For example, as shown in FIG. 4, the range distribution instruction is executed by setting the distribution range to the initial value 0 and the interval value 10 on the range distribution instruction screen displayed on the input unit 11 and pressing the start button. Is called. Following this, upon receiving the range distribution instruction, the range distribution processing unit 15a reads all data stored in the data storage unit 14a via the input / output control IF unit 13 (step S502).

これに続いて、範囲振り分け処理部15aは、読み込んだ全データの範囲振り分け処理を行う(ステップS503)。具体的には、図1に示すように、範囲振り分け処理部15aは、各データをそれぞれデータの値に応じて10刻みの等間隔とした範囲1、2等に順次振り分け、各範囲に振り分けられたデータ数およびデータ総数をカウントする。その結果、図3に示すように、初期値が0で10刻みの等間隔に区切られた範囲1から範囲11に対応付けて範囲振り分け処理部15aによって振り分けられたデータの個数とともに、各範囲のデータの個数を累積したデータ総数を、記憶部14の振り分けテーブル14bに記憶する。   Subsequently, the range distribution processing unit 15a performs a range distribution process for all the read data (step S503). Specifically, as shown in FIG. 1, the range distribution processing unit 15 a sequentially distributes each data into ranges 1, 2, etc., which are equally spaced in 10 increments according to the value of the data, and is distributed to each range. Count the number of data and the total number of data. As a result, as shown in FIG. 3, the initial value is 0 and the number of data distributed by the range distribution processing unit 15a in association with the range 1 to the range 11 divided at equal intervals of 10 increments, The total number of data obtained by accumulating the number of data is stored in the distribution table 14b of the storage unit 14.

これに続いて、中心範囲検出部15bは、振り分けテーブル14bから処理データを読み込み、中心範囲検出処理を行う(ステップS504)。具体的には、図1に示すように、中心範囲検出部15bは、各範囲のカウントデータ数を範囲1から順次累積カウントして、データ総数が101である複数のデータの中心に位置する累積カウント数51カウント目のデータが含まれる範囲5(40以上50未満)を中心範囲として検出する。   Subsequently, the center range detection unit 15b reads the processing data from the sorting table 14b and performs center range detection processing (step S504). Specifically, as shown in FIG. 1, the center range detection unit 15 b sequentially counts the number of count data in each range from the range 1 and accumulates at the center of a plurality of data whose total data is 101. The range 5 (40 or more and less than 50) including the 51st count data is detected as the central range.

これに続いて、近似メジアン値算出部は、データ記憶部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 range detection unit 15b stored in the data storage unit 14a (step S505). Specifically, as shown in FIG. 1, the approximate median value calculation unit 15 c calculates 45 as an average value of the upper limit value 50 and the lower limit value 40 of the range 5 (40 to less than 50) detected as the central range. Approximately calculated as median value. Then, the approximate median value calculation unit 15c outputs the processing result from the output unit 12 via the input / output control IF unit, and ends the approximate median value calculation process.

[実施例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 value calculation unit 15c can also calculate by the method described in the first embodiment after converting the bit string in the center range to the decimal system, but simply calculates the bit string as it is. You may make it do. Specifically, as shown in FIG. 6, it is possible to easily calculate, as an approximate median value, a bit with 1 in the leftmost portion where 1 appears in the bit string.

また、上記の実施例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 range 3 and range 9, A plurality of ranges divided into 10 increments such as 4 to 8 may be used. And it is good also as one range of the range 1 or the range 11 without distinguishing between 1-100 and 300-400 with low distribution density of a data value. In this way, if a plurality of ranges in which each data is distributed is divided into a plurality of ranges divided according to the distribution density of each data value in the plurality of data, the plurality of data can be more efficiently used according to the distribution density of the data values. It becomes possible to distribute to.

(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 value calculation device 10 shown in FIG. 2 is functionally divided and does not necessarily need to be physically configured as illustrated. That is, the specific form of dispersion and integration of the median value calculation device 10 is not limited to the illustrated one. For example, the range distribution processing unit 15a and the central range detection unit 15b are integrated, or approximate to the central range detection unit 15b. Integration of the median value calculation unit 15c or distribution of the approximate median value calculation unit 15c for each calculation item, such as all or part of each component in arbitrary units according to various loads and usage conditions It can be configured functionally or physically distributed and integrated. Furthermore, all or a part of each processing function performed in each device may be realized by a CPU and a program that is analyzed and executed by the CPU, or may be realized as hardware by wired logic.
(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 operation panel 21, a display 22, an HDD 23, a RAM 24, a ROM 25, and a CPU 26 via a bus 27. Here, the operation panel 21 corresponds to the input unit 11 shown in FIG. 2, and the display 22 corresponds to the output unit 12.

そして、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 range distribution program 25a, a center range detection program 25b, an approximate median value calculation program 25c, A data normalization program 25d is stored in advance. In addition, about 25a-25d, you may integrate or disperse | distribute suitably similarly to each component of 10 of the median value calculation apparatus shown in FIG.

そして、CPU26が、これらのプログラム25a〜25dをROM25から読み出して実行することで、図8に示すように、各プログラム25a〜25dは、範囲振り分けプロセス26a、中心範囲検出プロセス26b、近似メジアン値算出プロセス26cおよびデータ正規化プロセス26dとして機能するようになる。各プロセス26a〜26dは、図2に示した範囲振り分け処理部15a、中心範囲検出部15b、近似メジアン値算出部15cおよびデータ正規化部15dにそれぞれ対応する。   Then, the CPU 26 reads out these programs 25a to 25d from the ROM 25 and executes them. As shown in FIG. 8, each program 25a to 25d has a range distribution process 26a, a center range detection process 26b, and an approximate median value calculation. Functions as a process 26c and a data normalization process 26d. Each of the processes 26a to 26d corresponds to the range distribution processing unit 15a, the center range detection unit 15b, the approximate median value calculation unit 15c, and the data normalization unit 15d illustrated in FIG.

また、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 HDD 23 is provided with a data table 23a and a sorting table 23b. The data table 23a and the distribution table 23b correspond to the data storage unit 14a and the distribution table 14b shown in FIG. 2, respectively. The CPU 26 registers each processing result in the data table 14 a and the distribution table 23 b, reads the data group 24 a and the distribution table data 24 b from the data table 23 a and the distribution table 23 b, stores them in the RAM 24, and stores them in the RAM 24. Each processing is executed based on the data group 24a and the sorting table data 24b.

ところで、上記した各プログラム25a〜25dについては、必ずしも最初からROM25に記憶させておく必要はなく、例えば、コンピュータ20に挿入されるフレキシブルディスク(FD)、CD−ROM、MOディスク、DVDディスク、光磁気ディスク、ICカードなどの「可搬用の物理媒体」、または、コンピュータ20の内外に備えられるハードディスクドライブ(HDD)などの「固定用の物理媒体」、さらには、公衆回線、インターネット、LAN、WANなどを介してコンピュータ20に接続される「他のコンピュータ(またはサーバ)」などに各プログラムを記憶させておき、コンピュータ20がこれらから各プログラムを読み出して実行するようにしてもよい。   By the way, the above-described programs 25a to 25d are not necessarily stored in the ROM 25 from the beginning. For example, a flexible disk (FD), a CD-ROM, an MO disk, a DVD disk, an optical disk inserted into the computer 20 can be used. “Portable physical media” such as magnetic disks and IC cards, or “fixed physical media” such as hard disk drives (HDD) provided inside and outside the computer 20, public lines, the Internet, LAN, WAN Alternatively, each program may be stored in “another computer (or server)” connected to the computer 20 via the computer 20 and the like, and the computer 20 may read and execute each program therefrom.

以上のように、本発明に係るメジアン値算出装置、メジアン値算出方法およびメジアン値算出プログラムは、複数のデータから簡易にメジアン値を算出する場合に有用であり、特に、メジアン値を算出する際に必要なデータのソート処理を必要としないので、ソート処理のための複雑なソート回路構築することなく、ハードウェア上で簡易にメジアン値を算出する場合に適している。   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.

実施例1に係るメジアン値算出装置の概要および特徴を示す図である。It is a figure which shows the outline | summary and characteristic of the median value calculation apparatus which concern on Example 1. FIG. 実施例1に係るメジアン値算出装置の構成を示すブロック図である。It is a block diagram which shows the structure of the median value calculation apparatus which concerns on Example 1. FIG. 実施例1に係る記憶部の振り分けテーブルの構成を示す図である。It is a figure which shows the structure of the distribution table of the memory | storage part which concerns on Example 1. FIG. 実施例1に係るデータの範囲振り分けを指示する画面を示す図である。FIG. 10 is a diagram illustrating a screen for instructing data range distribution according to the first embodiment. 実施例1に係る近似メジアン値算出処理の流れを示すフローチャートである。6 is a flowchart illustrating a flow of approximate median value calculation processing according to the first embodiment. 範囲振り分け手段の異なる形態を示す図である。It is a figure which shows the different form of a range distribution means. 範囲振り分け手段の異なる形態を示す図である。It is a figure which shows the different form of a range distribution means. メジアン値算出プログラムを実行するコンピュータを示す図である。It is a figure which shows the computer which performs a median value calculation program.

符号の説明Explanation of symbols

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 SYMBOLS 10 Median value calculation apparatus 11 Input part 12 Output part 13 Input / output IF control part 14 Storage part 14a Data storage part 14b Distribution table 15 Control part 15a Range distribution process part 15b Center range detection part 15c Approximate median value calculation part 15d Data normalization Part 20 Computer 21 Operation Panel 22 Display 23 HDD (Hard Disk Drive)
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.
前記範囲振り分け手段は、等間隔に区分けされた前記複数の範囲のいずれかに前記複数のデータを振り分けることを特徴とする請求項1または2に記載のメジアン値算出装置。 The range distribution means, median value calculating apparatus according to claim 1 or 2, characterized in that for distributing the plurality of data to one of the plurality of ranges that are divided at equal intervals. 前記範囲振り分け手段は、二の累乗の範囲に区分けされた前記複数の範囲のいずれかに前記複数のデータを振り分けることを特徴とする請求項1または2に記載のメジアン値算出装置。 3. The median value calculation apparatus according to claim 1, wherein the range distribution unit distributes the plurality of data to any of the plurality of ranges divided into power-of-two ranges. 前記範囲振り分け手段は、前記複数のデータ内における各データ値の分布密度に応じて区分けされた前記複数の範囲のいずれかに前記複数のデータを振り分けることを特徴とする請求項1または2に記載のメジアン値算出装置。 3. The range distribution unit according to claim 1 or 2 , wherein 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. Median value calculation device. 複数のデータからメジアン値を算出するメジアン値算出装置に適用するメジアン値算出方法であって、
前記複数のデータそれぞれを各データ値に応じて、所定の値の範囲に区分けされた複数の範囲のいずれかにを振り分ける範囲振り分け工程と、
前記複数のデータそれぞれが前記範囲振り分け工程によって振り分けられた前記複数の範囲から、前記複数のデータの中心に位置するデータが振り分けられた範囲を中心範囲として検出する中心範囲検出工程と、
前記中心範囲検出工程によって検出された中心範囲の値に基づいて前記中心範囲の中心の値をメジアン値として近似的に算出する近似メジアン値算出工程
含んだことを特徴とするメジアン値算出方法。
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.
JP2005122781A 2005-04-20 2005-04-20 Median value calculation apparatus, median value calculation method, and median value calculation program Expired - Fee Related JP4584010B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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