JP5589494B2 - Statistical calculation apparatus and program - Google Patents

Statistical calculation apparatus and program Download PDF

Info

Publication number
JP5589494B2
JP5589494B2 JP2010073467A JP2010073467A JP5589494B2 JP 5589494 B2 JP5589494 B2 JP 5589494B2 JP 2010073467 A JP2010073467 A JP 2010073467A JP 2010073467 A JP2010073467 A JP 2010073467A JP 5589494 B2 JP5589494 B2 JP 5589494B2
Authority
JP
Japan
Prior art keywords
statistical data
statistical
calculation
data
input
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.)
Active
Application number
JP2010073467A
Other languages
Japanese (ja)
Other versions
JP2011204187A (en
Inventor
佐武郎 神谷
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2010073467A priority Critical patent/JP5589494B2/en
Publication of JP2011204187A publication Critical patent/JP2011204187A/en
Application granted granted Critical
Publication of JP5589494B2 publication Critical patent/JP5589494B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、入力された統計データに対して統計計算を行う機能を備えた統計計算装置及びそのプログラムに関する。   The present invention relates to a statistical calculation apparatus having a function of performing statistical calculation on input statistical data and a program thereof.

従来から、統計計算機能を備えた、一般に関数電卓と称する小型の電子式計算機が広く実用されている。   Conventionally, a small electronic calculator generally called a scientific calculator having a statistical calculation function has been widely used.

例えば、特許文献1には、統計データを1組ずつ指定し直す必要なく、2組以上の統計データを、共にグラフ化処理し統計計算する装置が開示されている。   For example, Patent Document 1 discloses an apparatus for performing statistical calculation by graphing two or more sets of statistical data together without having to respecify the sets of statistical data one by one.

このような関数電卓において、安価な機種では、限られたROMとRAMしか搭載されていない。そのため、登録できる統計データは限られてしまう。   In such a scientific calculator, an inexpensive model has only a limited ROM and RAM. Therefore, the statistical data that can be registered is limited.

例えば、80個分の統計データを登録可能な統計データエリアを持つ関数電卓では、(X,Y)データのような2変数を処理する場合には、最大40個の統計データまでしか持つことができず、41個目のデータ以上の統計データを扱うことができない。   For example, a scientific calculator having a statistical data area capable of registering 80 statistical data can only have a maximum of 40 statistical data when processing two variables such as (X, Y) data. The statistical data beyond the 41st data cannot be handled.

また、同様に80個分の統計データエリアしか持っていないが、登録個数が80個目を超えようとするとき、Edit OFFモードを選択することで、続けてデータ入力することが可能な機種も知られている。これは、データ数nや累積値Σxなどの必用な値はデータ登録時に随時計算しているので、既に計算済みのデータを再度使用することがなく、データを上書きしてしまっても構わないからである。   Similarly, although there are only 80 statistical data areas, there are models that can continue to input data by selecting the Edit OFF mode when the registered number is going to exceed the 80th. Are known. This is because necessary values such as the number of data n and the cumulative value Σx are calculated at the time of data registration, so the already calculated data can be overwritten without reusing the already calculated data. It is.

特開平10−27163号公報JP-A-10-27163

後者の関数電卓では、Edit OFFモードで統計データを上書きしていくことで、統計データの登録数を増加させることはできるが、過去のデータを一切参照することができず、また、修正することもできなくなってしまう。   In the latter scientific calculator, the number of registered statistical data can be increased by overwriting the statistical data in the Edit OFF mode, but past data cannot be referred to or modified at all. It will not be possible.

本発明は、このような課題に鑑みなされたもので、予め定められた統計データエリア以上のデータ数を扱うことができ、また、統計データエリアに残されたデータは参照及び編集を行うことが可能になる統計計算装置及びそのプログラムを提供することを目的とする。   The present invention has been made in view of such a problem, and can handle the number of data exceeding a predetermined statistical data area, and the data remaining in the statistical data area can be referred to and edited. It is an object of the present invention to provide a statistical calculation apparatus and a program that enable it.

請求項1に記載の統計計算装置は、複数組の統計データを入力する統計データ入力手段と、この統計データ入力手段により入力された複数組の統計データを、予め決められたエリアまで記憶する統計データ記憶手段と、この統計データ記憶手段により記憶された複数組の統計データを計算して統計計算値を算出する統計計算手段と、を備え、前記計算済みの統計データの組のうち、入力ミスで入力された誤った統計データではないと判断すべき条件を設定する設定手段と、前記統計データ記憶手段が前記予め決められたエリアまで前記統計データの組を記憶した後に、さらに前記統計データ入力手段により統計データの組が新たに入力されたき、前記統計計算手段によって計算済みの統計データの組のうち、前記設定手段により設定された条件を満たす統計データを前記統計データ記憶手段から削除して、前記新たに入力された統計データの組を前記統計データ記憶手段に記憶する統計データ更新手段と、この統計データ記憶手段に記憶された、統計データ更新手段によって削除された以外の、前記統計計算手段によって計算済みの統計データの組を表示して、修正する統計データ修正手段と、この統計データ修正手段によって修正された統計データの組を用いて再計算を行って統計計算値を算出する統計再計算手段と、さらに備えたことを特徴とする。
請求項2に記載の統計計算装置は、前記請求項1に記載の統計計算装置において、前記統計データ更新手段は、前記統計計算手段によって計算済みの統計データの組の少なくとも一部を前記統計データ記憶手段から削除することを報知する報知手段を有し、該報知手段で前記削除することを報知した後に、前記統計データ記憶手段からの前記計算済みの統計データの組の少なくとも一部の削除を実行することを特徴とする。
請求項3に記載の統計計算装置は、前記請求項1または2に記載の統計計算装置において、前記統計計算手段による統計計算として、1変数統計計算と2変数統計計算の何れを行うかユーザ選択する統計計算選択手段をさらに備え、この統計計算選択手段によって1変数統計計算が選択された場合には、前記統計データ入力手段は、統計データの組として1個の統計データを入力し、前記統計データ更新手段は、前記計算済みの統計データの組の少なくとも一部として、計算済みの少なくとも1個の統計データを前記統計データ記憶手段から削除し、前記統計計算選択手段によって2変数統計計算が選択された場合には、前記統計データ入力手段は、統計データの組として2個の統計データを入力し、前記統計データ更新手段は、前記計算済みの統計データの組の少なくとも一部として、計算済みの少なくとも2個の統計データを前記統計データ記憶手段から削除する、ことを特徴とする。
請求項4に記載のプログラムは、電子機器のコンピュータを制御するためのコンピュータ読み込み可能なプログラムであって、前記コンピュータを、複数組の統計データを入力する統計データ入力手段、この統計データ入力手段により入力された複数組の統計データを、予め決められたエリアまで記憶する統計データ記憶手段、この統計データ記憶手段により記憶された複数組の統計データを計算して統計計算値を算出する統計計算手段、前記計算済みの統計データの組のうち、入力ミスで入力された誤った統計データではないと判断すべき条件を設定する設定手段、前記統計データ記憶手段が前記予め決められたエリアまで前記統計データの組を記憶した後に、さらに前記統計データ入力手段により統計データの組が新たに入力されたき、前記統計計算手段によって計算済みの統計データの組のうち、前記設定手段により設定された条件を満たす統計データを前記統計データ記憶手段から削除して、前記新たに入力された統計データの組を前記統計データ記憶手段に記憶する統計データ更新手段、この統計データ記憶手段に記憶された、統計データ更新手段によって削除された以外の、前記統計計算手段によって計算済みの統計データの組を表示して、修正する統計データ修正手段、この統計データ修正手段によって修正された統計データの組を用いた再計算を行って統計計算値を算出する統計再計算手段、として機能させるようにしたことを特徴としている。
The statistical calculation apparatus according to claim 1 is a statistical data input means for inputting a plurality of sets of statistical data, and a statistics for storing a plurality of sets of statistical data input by the statistical data input means up to a predetermined area. Data storage means; and statistical calculation means for calculating a plurality of sets of statistical data stored by the statistical data storage means to calculate a statistical calculation value, and an input error among the set of calculated statistical data A setting means for setting a condition to be determined as not the erroneous statistical data input in the step, and after the statistical data storage means stores the set of statistical data up to the predetermined area, the statistical data input When a set of statistical data is newly input by the means, among the sets of statistical data already calculated by the statistical calculation means, the condition set by the setting means is set. Remove the statistical data satisfying from the statistical data storing means, and statistical data updating means for storing a set of statistical data to which the newly entered into the statistical data storage means, stored in the statistical data storage means, Statistical data correction means for displaying and correcting a set of statistical data calculated by the statistical calculation means other than deleted by the statistical data updating means, and a set of statistical data corrected by the statistical data correction means And a statistical recalculation means for calculating a statistical calculation value by performing recalculation using the recalculation means.
The statistical calculation apparatus according to claim 2 is the statistical calculation apparatus according to claim 1, wherein the statistical data update unit converts at least a part of a set of statistical data calculated by the statistical calculation unit to the statistical data. A notification means for notifying deletion from the storage means; after notifying the deletion by the notification means, deleting at least a part of the set of calculated statistical data from the statistical data storage means; It is characterized by performing.
The statistical calculation apparatus according to claim 3 is the statistical calculation apparatus according to claim 1 or 2, wherein either one-variable statistical calculation or two-variable statistical calculation is performed as a statistical calculation by the statistical calculation unit. A statistical calculation selection means for selecting, and when the statistical calculation selection means selects one-variable statistical calculation, the statistical data input means inputs one statistical data as a set of statistical data, and the statistics The data update means deletes at least one calculated statistical data from the statistical data storage means as at least part of the set of calculated statistical data, and the two-variable statistical calculation is selected by the statistical calculation selection means The statistical data input means inputs two statistical data as a set of statistical data, and the statistical data update means As at least a part a set of statistical data, to delete a computed at least two statistics from the statistical data storage means, characterized in that.
The program according to claim 4 is a computer-readable program for controlling a computer of an electronic device, wherein the computer is connected to statistical data input means for inputting a plurality of sets of statistical data, and the statistical data input means. Statistical data storage means for storing a plurality of sets of input statistical data up to a predetermined area, and statistical calculation means for calculating a statistical calculation value by calculating a plurality of sets of statistical data stored by the statistical data storage means Setting means for setting a condition to be determined not to be erroneous statistical data input due to an input error in the set of statistical data already calculated, and the statistical data storage means to the predetermined area up to the predetermined area After storing the data set, a statistical data set is newly input by the statistical data input means, Of the statistical data sets calculated by the statistical calculation means, the statistical data satisfying the conditions set by the setting means is deleted from the statistical data storage means, and the newly input statistical data set is Statistical data update means to be stored in the statistical data storage means, stored in the statistical data storage means, except for deleted by the statistical data update means, displaying a set of statistical data calculated by the statistical calculation means, It is characterized by functioning as statistical data correcting means for correcting, statistical recalculating means for calculating a statistical calculation value by performing recalculation using a set of statistical data corrected by the statistical data correcting means. .

本発明によれば、予め定められた統計データエリア以上のデータ数を扱うことができ、また、統計データエリアに残されたデータは参照及び編集を行うことが可能になる統計計算装置及びそのプログラムを提供できる。   According to the present invention, a statistical calculation apparatus capable of handling a number of data exceeding a predetermined statistical data area and enabling reference and editing of data remaining in the statistical data area, and a program thereof Can provide.

図1は、本発明の統計計算装置の実施形態に係る関数電卓の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a scientific calculator according to an embodiment of a statistical calculation apparatus of the present invention. 図2Aは、前記関数電卓による第1実施形態の統計計算処理の一連のフローチャートの第1の部分を示す図である。FIG. 2A is a diagram showing a first part of a series of flowcharts of the statistical calculation processing of the first embodiment by the scientific calculator. 図2Bは、前記関数電卓による第1実施形態の統計計算処理の一連のフローチャートの第2の部分を示す図である。FIG. 2B is a diagram showing a second part of a series of flowcharts of the statistical calculation processing of the first embodiment by the scientific calculator. 図3は、前記関数電卓の第1実施形態の統計計算処理中における古いデータの削除方法を説明するための図である。FIG. 3 is a diagram for explaining a method of deleting old data during the statistical calculation process of the first embodiment of the scientific calculator. 図4は、前記関数電卓の第1実施形態の統計計算処理中における古いデータの削除処理の詳細フローチャートを示す図である。FIG. 4 is a detailed flowchart of old data deletion processing during the statistical calculation processing of the scientific calculator according to the first embodiment. 図5は、前記関数電卓の第1実施形態の統計計算処理に伴う表示の変遷の具体例を示す図である。FIG. 5 is a diagram showing a specific example of the transition of display accompanying the statistical calculation processing of the first embodiment of the scientific calculator. 図6は、前記関数電卓による第2実施形態の統計計算処理中における古いデータの削除処理の詳細フローチャートを示す図である。FIG. 6 is a diagram showing a detailed flowchart of old data deletion processing during statistical calculation processing of the second embodiment by the scientific calculator. 図7は、前記関数電卓の第2実施形態の統計計算処理中における古いデータの削除方法を説明するための図である。FIG. 7 is a diagram for explaining a method of deleting old data during the statistical calculation process of the second embodiment of the scientific calculator.

以下、図面により本発明の実施の形態について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の統計計算装置の実施形態に係る関数電卓10の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of a scientific calculator 10 according to an embodiment of a statistical calculation apparatus of the present invention.

この関数電卓10は、コンピュータ等からなる制御部(CPU)11を備えており、該CPU11に、キー入力部12、液晶(LCD)画面13、メモリ14、記憶媒体読取部15が接続されている。   The scientific calculator 10 includes a control unit (CPU) 11 including a computer or the like, and a key input unit 12, a liquid crystal (LCD) screen 13, a memory 14, and a storage medium reading unit 15 are connected to the CPU 11. .

この関数電卓10は、特に図示はしていないが、その携帯性の必要からユーザが片手で十分把持し片手で操作可能な小型サイズからなり、その本体正面に、キー入力部12及びLCD画面13が設けられる。   Although not particularly shown, the scientific calculator 10 has a small size that allows a user to hold it with one hand and operate it with one hand because of its portability, and has a key input unit 12 and an LCD screen 13 on the front of the main body. Is provided.

キー入力部12には、数字,文字,算術記号を入力したり演算の実行を指示したりするための数字・文字・演算記号キー群、各種の関数コマンドを入力するための関数機能キー群、LCD画面13に表示されたカーソル,ポインタの移動操作やデータ項目の選択操作などを行うためのカーソルキー、等が備えられる。前記数字・文字・演算記号キー群としては、「0」〜「9」(数値)キー、「+」「−」「×」「÷」(算術記号)キー、「EXP」(指数関数)キー、「CALC」(計算)キー、「EXE」(実行)キー、「AC」(クリア)キー、等が配列される。前記関数機能キー群としては、「log」キー、「ln」キー、「sin」キー、「cos」キー、「tan」キー、等が配列される。   The key input unit 12 is a number / character / arithmetic symbol key group for inputting numbers, characters, arithmetic symbols or instructing execution of an operation, a function function key group for inputting various function commands, A cursor displayed on the LCD screen 13, a cursor key for performing a pointer movement operation, a data item selection operation, and the like are provided. The numeric / letter / arithmetic symbol key groups include “0” to “9” (numeric) keys, “+”, “−”, “×”, “÷” (arithmetic symbols) keys, and “EXP” (exponential function) keys. , “CALC” (calculation) key, “EXE” (execute) key, “AC” (clear) key, and the like are arranged. As the function function key group, a “log” key, an “ln” key, a “sin” key, a “cos” key, a “tan” key, and the like are arranged.

メモリ14は、特に図示はしていないが、フラッシュROMとRAMとから構成される。
フラッシュROMには、本関数電卓10の電子回路における全体の処理を司るシステムプログラムが予め記憶されると共に、キー入力部12からの入力に応じた演算処理などを実行するための計算機制御プログラムが予め記憶されている。CPU11は、キー入力部12から入力される入力データに応じて、この統計計算プログラム14aを起動させ、RAMを作業用記憶領域として回路各部の動作制御を行なうものである。この計算機制御プログラムは、キー入力部12からの統計データの入力に応じて統計計算を行う統計計算プログラム14aを含む。
The memory 14 includes a flash ROM and a RAM (not shown).
The flash ROM stores in advance a system program that controls the entire processing in the electronic circuit of the scientific calculator 10, and also stores a computer control program for executing arithmetic processing according to an input from the key input unit 12 in advance. It is remembered. The CPU 11 activates the statistical calculation program 14a in accordance with the input data input from the key input unit 12, and controls the operation of each part of the circuit using the RAM as a working storage area. The computer control program includes a statistical calculation program 14 a that performs statistical calculation in response to statistical data input from the key input unit 12.

また、RAMには、入力バッファ14b、統計データエリア14c、指定統計種類エリア14d、統計計算データエリア14e、データ個数/データ記憶個数/最大格納組数エリア14f、等が設けられる。   The RAM is also provided with an input buffer 14b, a statistical data area 14c, a designated statistical type area 14d, a statistical calculation data area 14e, a data count / data storage count / maximum storage set count area 14f, and the like.

ここで、入力バッファ14bには、キー入力部12により入力された数値や各種コマンドなどのキー入力データが逐次記憶される。   Here, key input data such as numerical values and various commands input by the key input unit 12 are sequentially stored in the input buffer 14b.

統計データエリア14cは、キー入力部12により入力され入力バッファ14bに記憶された統計データを登録する。本実施形態では、この統計データエリア14cは、80個分の統計データを登録するだけの最大容量が確保されているものとする。   The statistical data area 14c registers statistical data input by the key input unit 12 and stored in the input buffer 14b. In the present embodiment, it is assumed that the statistical data area 14c has a maximum capacity for registering 80 pieces of statistical data.

指定統計種類エリア14dは、同じくキー入力部12から入力され入力バッファ14bに記憶された、該関数電卓10が備える複数の統計演算の内の何れを実行するかの指定内容を登録する。例えば、該関数電卓10は、1変数統計演算と2変数統計演算とを行うことが可能である。   The designated statistical type area 14d registers the designated content to be executed among a plurality of statistical operations provided in the scientific calculator 10 that are also input from the key input unit 12 and stored in the input buffer 14b. For example, the scientific calculator 10 can perform one-variable statistical calculation and two-variable statistical calculation.

1変数統計演算では、入力された統計データxに関する統計計算データ、具体的には、総和、2乗和、個数、平均、母標準偏差、及び標本標準偏差の計算を行うことができる。   In the one-variable statistical calculation, statistical calculation data relating to the input statistical data x, specifically, summation, sum of squares, number, average, population standard deviation, and sample standard deviation can be calculated.

2変数統計演算は、回帰演算、対数回帰演算y=A+BlnX、e指数回帰演算y=AeBX、及びab指数回帰演算y=ABの計算を含む。回帰演算は、一次回帰演算y=A+BX及び二次回帰演算y=A+BX+CXを含む。 The two-variable statistical calculation includes calculation of regression calculation, logarithmic regression calculation y = A + BlnX, e-exponential regression calculation y = Ae BX , and ab exponential regression calculation y = AB X. Regression calculation includes a primary regression calculation y = A + BX and the quadratic regression calculation y = A + BX + CX 2 .

一次回帰演算では、入力された統計データxに関する統計計算データ、具体的には、総和,2乗和,3乗和,4乗和,平均,母標準偏差,標本標準偏差,最小値,及び最大値、入力された統計データyに関する、総和,2乗和,3乗和,最小値,及び最大値、統計データxと統計データyの積和、(統計データxの2乗×統計データy)の総和、統計データ(x,y)の個数、統計データyに関する標本標準偏差、回帰演算における回帰係数の定数項Aの算出,回帰係数の定数項Bの算出,相関係数rの算出,x推定値の算出,及びy推定値の算出の計算を行うことができる。   In the linear regression calculation, statistical calculation data regarding the input statistical data x, specifically, sum, square sum, cube sum, fourth sum, average, population standard deviation, sample standard deviation, minimum value, and maximum Value, total sum, square sum, cube sum, minimum value, maximum value, sum of products of statistical data x and statistical data y, (square of statistical data x × statistical data y) , The number of statistical data (x, y), sample standard deviation for statistical data y, calculation of regression coefficient constant term A in regression calculation, calculation of regression coefficient constant term B, calculation of correlation coefficient r, x Calculation of the estimated value and calculation of the y estimated value can be performed.

二次回帰演算では、統計データx,yに関する統計計算データ、具体的には、総和,2乗和,3乗和,4乗和,平均,母標準偏差,標本標準偏差,最小値,及び最大値、統計データyに関する、総和,2乗和,3乗和,最小値,及び最大値、統計データxと統計データyの積和、(統計データxの2乗×統計データy)の総和、統計データ(x,y)の個数、統計データyに関する標本標準偏差、回帰演算における回帰係数の定数項Aの算出,回帰係数の定数項Bの算出,回帰係数の定数項Cの算出,x推定値の算出,x推定値の算出,及びy推定値の算出の計算を行うことができる。 In the quadratic regression operation, statistical calculation data regarding statistical data x and y, specifically, sum, square sum, cube sum, fourth sum, average, population standard deviation, sample standard deviation, minimum value, and maximum The sum of values, the sum of squares, the sum of cubes, the minimum and maximum values, the sum of products of statistical data x and statistical data y, the sum of (square of statistical data x × statistical data y), Number of statistical data (x, y), sample standard deviation regarding statistical data y, calculation of constant term A of regression coefficient in regression calculation, calculation of constant term B of regression coefficient, calculation of constant term C of regression coefficient, x 1 calculation of the estimated value, the calculation of x 2 estimates, and calculation of the calculation of y estimate can be performed.

対数回帰演算、e指数回帰演算、及びab指数回帰演算では、入力された統計データx,yに関する統計計算データ、具体的には、総和,2乗和,3乗和,4乗和,平均,母標準偏差,標本標準偏差,最小値,及び最大値、入力された統計データyに関する、総和,2乗和,3乗和,最小値,及び最大値、統計データxと統計データyの積和、(統計データxの2乗×統計データy)の総和、統計データ(x,y)の個数、統計データyに関する標本標準偏差、回帰演算における回帰係数の定数項Aの算出,回帰係数の定数項Bの算出,相関係数rの算出,x推定値の算出,及びy推定値の算出の計算を行うことができる。   In logarithmic regression operation, e-exponential regression operation, and ab exponential regression operation, statistical calculation data regarding input statistical data x and y, specifically, summation, sum of squares, sum of cubes, sum of squares, average, Population standard deviation, sample standard deviation, minimum value, maximum value, total sum, square sum, cube sum, minimum value, maximum value, statistical data x and statistical data y related to the input statistical data y , Sum of (statistical data x square x statistical data y), number of statistical data (x, y), sample standard deviation for statistical data y, calculation of regression coefficient constant term A in regression operation, regression coefficient constant Calculation of term B, calculation of correlation coefficient r, calculation of x estimated value, and calculation of y estimated value can be performed.

なお、各演算の算出手法については、従来公知の手法であるため、その詳細な説明は省略する。   In addition, since the calculation method of each calculation is a conventionally well-known method, the detailed description is abbreviate | omitted.

統計計算データエリア14eは、統計データが入力される毎に、随時計算した統計計算結果を記憶する。   The statistical calculation data area 14e stores statistical calculation results calculated as needed each time statistical data is input.

データ個数/データ記憶個数/最大格納組数エリア14fは、統計データの入力個数を示すデータ個数n、統計データエリア14cへの統計データの記憶個数を示すデータ記憶個数m、及び、統計データエリア14cへの統計データの格納組数の最大値を示す最大格納組数を格納する。最大格納組数には、1変数統計演算が選択された場合には統計データエリア14cの最大容量である80組が設定され、2変数統計演算が選択された場合には統計データエリア14cの最大容量の1/2である40組が設定されることとなる。   The data count / data storage count / maximum storage set count area 14f includes a data count n indicating the number of input statistical data, a data storage count m indicating the statistical data storage count in the statistical data area 14c, and a statistical data area 14c. Stores the maximum number of storage groups indicating the maximum number of storage groups of statistical data. The maximum number of storage groups is set to 80, which is the maximum capacity of the statistical data area 14c, when one-variable statistical calculation is selected, and the maximum of the statistical data area 14c is selected when two-variable statistical calculation is selected. Forty sets that are ½ of the capacity are set.

記憶媒体読取部15は、装着される記憶媒体(メモリ・カードなど)20に対して読み取り/書き込みを行うものであり、これにより、前記メモリ14のフラッシュROMに予め記憶されたシステムプログラムや計算機制御プログラムの更新データを記憶媒体20から読み取ってフラッシュROMのプログラムを更新したり、前記メモリ14の統計計算データエリア14eに記憶されている統計計算の結果を記憶媒体20に保存したりすることができる。   The storage medium reading unit 15 reads / writes data from / into a storage medium (memory card or the like) 20 to be mounted, whereby a system program or computer control stored in advance in the flash ROM of the memory 14 is performed. The program update data can be read from the storage medium 20 to update the program in the flash ROM, and the statistical calculation results stored in the statistical calculation data area 14e of the memory 14 can be stored in the storage medium 20. .

次に、前記構成による関数電卓10の動作について説明する。   Next, the operation of the scientific calculator 10 having the above configuration will be described.

(第1実施形態)
図2A及び図2Bは、前記関数電卓10による第1実施形態の統計計算処理の一連のフローチャートを示す図である。図3は、前記関数電卓10の第1実施形態の統計計算処理中における古いデータの削除方法を説明するための図である。図4は、前記関数電卓10の第1実施形態の統計計算処理中における古いデータの削除処理の詳細フローチャートを示す図である。
(First embodiment)
2A and 2B are diagrams showing a series of flowcharts of the statistical calculation processing of the first embodiment by the scientific calculator 10. FIG. FIG. 3 is a diagram for explaining a method of deleting old data during the statistical calculation processing of the scientific calculator 10 according to the first embodiment. FIG. 4 is a detailed flowchart of the old data deletion process during the statistical calculation process of the scientific calculator 10 according to the first embodiment.

ユーザのキー入力部12の操作によって計算種類の指定が行われると、その指定内容が入力バッファ14bに記憶されるので、その入力バッファ14bに記憶された指定内容をメモリ14の指定統計種類エリア14dに登録する(ステップS11)。そして、この指定統計種類エリア14dに登録された指定の計算種類が2変数統計演算でなければ、即ち1変数統計演算であれば(ステップS12(NO))、メモリ14のデータ個数/データ記憶個数/最大格納組数エリア14fに、最大格納組数(Max組数)として、統計データエリア14cの最大容量の個数(本実施形態では80組)を設定する(ステップS13)。これに対して、登録された指定の計算種類が2変数統計演算であれば(ステップS12(YES))、データ個数/データ記憶個数/最大格納組数エリア14fに、最大格納組数(Max組数)として、統計データエリア14cの最大容量÷2の個数(本実施形態では40組)を設定する(ステップS14)。こうして最大格納組数(Max組数)の設定がなされた後、データ個数/データ記憶個数/最大格納組数エリア14fのデータ個数n及びデータ記憶個数mをそれぞれ0に初期化する(ステップS15)。   When the calculation type is designated by the user's operation of the key input unit 12, the designated content is stored in the input buffer 14b. Therefore, the designated content stored in the input buffer 14b is stored in the designated statistical type area 14d of the memory 14. (Step S11). If the designated calculation type registered in the designated statistical type area 14d is not a two-variable statistical calculation, that is, if it is a one-variable statistical calculation (step S12 (NO)), the number of data in the memory 14 / the number of stored data In the maximum storage group number area 14f, the maximum capacity number (80 groups in the present embodiment) of the statistical data area 14c is set as the maximum storage group number (Max group number) (step S13). On the other hand, if the registered specified calculation type is a two-variable statistical calculation (step S12 (YES)), the maximum number of stored sets (Max sets) is stored in the data count / data storage count / maximum storage set count area 14f. As the number, the maximum capacity of the statistical data area 14c ÷ the number of 2 (40 sets in the present embodiment) is set (step S14). After the maximum storage group number (Max group number) is set in this way, the data number / data storage number / data number n and data storage number m in the maximum storage group number area 14f are each initialized to 0 (step S15). .

そして、ユーザのキー入力部12の操作にる1組の統計データの入力が行われると、その入力された統計データが入力バッファ14bに記憶され、また、LCD画面13に表示される(ステップS16)。なお、1変数統計演算の場合には1つの統計データxが入力され、2変数統計演算の場合にはx,yの2つの統計データが入力される。   When a set of statistical data is input by the user's operation of the key input unit 12, the input statistical data is stored in the input buffer 14b and displayed on the LCD screen 13 (step S16). ). In the case of a one-variable statistical calculation, one statistical data x is input, and in the case of a two-variable statistical calculation, two statistical data x and y are input.

このように統計データが入力されたならば、次に、その入力バッファ14bに記憶された入力統計データ(及び、既にメモリ14の統計計算データエリア14eに統計計算データが記憶されていれば、その統計計算データ)を用いて、各統計計算データの計算を行って、その結果を統計計算データエリア14eに上書きで記憶する(ステップS17)。例えば、一次回帰演算が指定されていれば、入力された統計データxに関する、総和,2乗和,3乗和,4乗和,平均,母標準偏差,標本標準偏差,最小値,及び最大値、入力された統計データyに関する、総和,2乗和,3乗和,最小値,及び最大値、統計データxと統計データyの積和、(統計データxの2乗×統計データy)の総和、統計データ(x,y)の個数、統計データyに関する標本標準偏差、回帰演算における回帰係数の定数項Aの算出,回帰係数の定数項Bの算出,相関係数rの算出,x推定値の算出,及びy推定値の算出の各計算を行って、各計算結果を統計計算データエリア14eに記憶する。   If the statistical data is input in this way, next, the input statistical data stored in the input buffer 14b (and if the statistical calculation data is already stored in the statistical calculation data area 14e of the memory 14) Statistical calculation data) is used to calculate each statistical calculation data, and the result is overwritten and stored in the statistical calculation data area 14e (step S17). For example, if a linear regression operation is specified, the sum, square sum, cube sum, fourth sum, average, population standard deviation, sample standard deviation, minimum value, and maximum value for the input statistical data x , Sum, square sum, cube sum, minimum value, maximum value, product sum of statistical data x and statistical data y, (square of statistical data x × statistical data y) Summation, number of statistical data (x, y), sample standard deviation for statistical data y, calculation of constant term A of regression coefficient in regression calculation, calculation of constant term B of regression coefficient, calculation of correlation coefficient r, x estimation The calculation of the value and the calculation of the estimated y value are performed, and each calculation result is stored in the statistical calculation data area 14e.

そして、データ個数/データ記憶個数/最大格納組数エリア14fに設定されているデータ個数n及びデータ記憶個数mをそれぞれインクリメントし、そのインクリメント結果をデータ個数/データ記憶個数/最大格納組数エリア14fに上書きする(ステップS18)。その結果としてデータ個数/データ記憶個数/最大格納組数エリア14fに新たに設定されたデータ記憶個数mが、同じくデータ個数/データ記憶個数/最大格納組数エリア14fに設定されている最大格納組数(Max組数)を越えていなければ(ステップS19(NO)、前記入力バッファ14bに記憶された入力統計データを、メモリ14の統計データエリア14cに記憶する(ステップS20)。なお、2変数統計演算の場合には、x,yの2つの統計データが入力されるため、統計データエリア14cにおいては、図3(A)に示すように2個分の格納エリアが使用される。   Then, the data number n and the data storage number m set in the data number / data storage number / maximum storage set number area 14f are respectively incremented, and the increment result is obtained as the data number / data storage number / maximum storage set number area 14f. Is overwritten (step S18). As a result, the data storage number m newly set in the data number / data storage number / maximum storage set number area 14f is the same as the data storage number / data storage number / maximum storage set number area 14f. If it does not exceed the number (Max number of sets) (NO in step S19), the input statistical data stored in the input buffer 14b is stored in the statistical data area 14c of the memory 14 (step S20). In the case of statistical calculation, since two pieces of statistical data x and y are input, two storage areas are used in the statistical data area 14c as shown in FIG.

その後、データ入力を続ける場合には(ステップS21(YES))、前記ステップS16に戻って、次の統計データの入力を受け付けることとなる。なお、このデータ入力を続けるか否かの判断は、例えば、キー入力部12の「0」〜「9」(数値)キー及び「EXE」(実行)キー以外のキー入力の有無によって行う。   Thereafter, when data input is continued (step S21 (YES)), the process returns to step S16 to accept the input of the next statistical data. The determination as to whether or not to continue this data input is made, for example, based on the presence or absence of key inputs other than the “0” to “9” (numerical value) keys and the “EXE” (execution) key of the key input unit 12.

こうして、前記ステップS16乃至ステップS21の動作を繰り返していき、図3(A)に示すように、統計データエリア14cに80個分の統計データを登録してしまうと、次の統計データの入力(ステップS16)及び各統計計算データの計算(ステップS17)が行われると、前記ステップS18でデータ個数/データ記憶個数/最大格納組数エリア14fに設定されているデータ個数n及びデータ記憶個数mは共に41となる。従って、前記ステップS19において、データ個数/データ記憶個数/最大格納組数エリア14fに新たに設定されたデータ記憶個数mが、データ個数/データ記憶個数/最大格納組数エリア14fに設定されている最大格納組数(Max組数)を越えたと判断される(ステップS19、YES)。   In this way, the operations of steps S16 to S21 are repeated, and as shown in FIG. 3A, when 80 pieces of statistical data are registered in the statistical data area 14c, the next statistical data is input ( When step S16) and calculation of each statistical calculation data (step S17) are performed, the data number n and the data storage number m set in the data number / data storage number / maximum storage group number area 14f in step S18 are as follows. Both are 41. Accordingly, in step S19, the data storage number m newly set in the data number / data storage number / maximum storage group number area 14f is set in the data number / data storage number / maximum storage group number area 14f. It is determined that the maximum number of stored groups (Max group number) has been exceeded (step S19, YES).

この場合には、LCD画面13に、古いデータを削除する旨のメッセージを表示し(ステップS22)、ユーザのキー入力部12の操作による確認入力に応じて、統計データエリア14cからの古いデータの削除処理を実施する(ステップS23)。即ち、図4に示すように、統計データエリア14cの先頭データ、つまり最も古いデータ(1変数統計演算であれば1個分、2変数統計演算であれば2個分)を削除して、データを詰めた後(ステップS23a)、データ個数/データ記憶個数/最大格納組数エリア14fに設定されているデータ記憶個数mをデクリメントし、そのデクリメント結果をデータ個数/データ記憶個数/最大格納組数エリア14fに上書きする(ステップS23b)。これにより、統計データエリア14cにおける最終データ(1変数統計演算であれば1個分、2変数統計演算であれば2個分)のエリアが空となるので、そこに、次の前記ステップS20において前記入力バッファ14bに記憶された入力統計データを登録できるようになる。結果として、図3(B)に示すように、41個目の統計データx41,y41を登録することができる(2変数統計演算の場合)。   In this case, a message to delete the old data is displayed on the LCD screen 13 (step S22), and the old data from the statistical data area 14c is displayed according to the confirmation input by the user's operation of the key input unit 12. A deletion process is performed (step S23). That is, as shown in FIG. 4, the top data of the statistical data area 14c, that is, the oldest data (one for one-variable statistical calculation, one for two-variable statistical calculation) is deleted, and the data (Step S23a), the data storage number m set in the data count / data storage count / maximum storage set count area 14f is decremented, and the decrement result is obtained as data count / data storage count / maximum storage set count. The area 14f is overwritten (step S23b). As a result, the area of the final data in the statistical data area 14c (one for one-variable statistical calculation and two for two-variable statistical calculation) becomes empty, so that in the next step S20, The input statistical data stored in the input buffer 14b can be registered. As a result, as shown in FIG. 3B, the 41st statistical data x41, y41 can be registered (in the case of two-variable statistical calculation).

以降、前記ステップS16乃至ステップS23の処理を繰り返すことで、古いデータの削除処理が繰り返されて、統計データを更に登録していくことができる。この場合、データ個数/データ記憶個数/最大格納組数エリア14fに設定されるデータ個数nは増加していくが、データ記憶個数mは最大格納組数(Max組)に維持されることとなる。従って、必要であれば、削除した統計データ数をn−mにより求めることもできる。   Thereafter, by repeating the processing from step S16 to step S23, old data deletion processing is repeated, and statistical data can be further registered. In this case, the data number n set in the data number / data storage number / maximum storage group number area 14f increases, but the data storage number m is maintained at the maximum storage group number (Max group). . Therefore, if necessary, the number of deleted statistical data can be obtained by nm.

而して、ユーザのキー入力部12の所定の操作によって統計計算データの表示が指示されると、統計データ入力を終了して(ステップS21(NO))、統計計算データを表示するので(ステップS24(YES))、ユーザのキー入力部12の所定の操作による表示させたい統計計算データの指定を受け付ける(ステップS25)。そして、その指定の統計計算データの値を統計計算データエリア14eから読み出して、LCD画面13に表示する(ステップS26)。その後、ユーザのキー入力部12の所定の操作によって統計データの入力に戻ることを指定されたならば(ステップS27(YES))、前記ステップS21に戻る。これに対して、前記統計データの入力に戻ることを指定されなければ、あるいは、指定の統計計算データの値の表示を所定時間行ったならば(ステップS27(NO))、前記ステップS25に戻り、ユーザによる表示させたい統計計算データの指定を再び受け付けることとなる。   Thus, when the display of the statistical calculation data is instructed by a predetermined operation of the key input unit 12 by the user, the statistical data input is terminated (step S21 (NO)), and the statistical calculation data is displayed (step S21). In S24 (YES), designation of statistical calculation data to be displayed by a predetermined operation of the user's key input unit 12 is accepted (step S25). Then, the value of the designated statistical calculation data is read from the statistical calculation data area 14e and displayed on the LCD screen 13 (step S26). Thereafter, if it is designated to return to the input of statistical data by a predetermined operation of the key input unit 12 by the user (step S27 (YES)), the process returns to step S21. On the other hand, if it is not designated to return to the input of the statistical data or if the value of the designated statistical calculation data is displayed for a predetermined time (step S27 (NO)), the process returns to the step S25. The specification of statistical calculation data to be displayed by the user is accepted again.

また、ユーザのキー入力部12の所定の操作によって入力統計データの表示が指示されると、統計データ入力を終了し(ステップS21(NO))、統計計算データの表示を行わないで(ステップS24(NO))、入力統計データを表示するので(ステップS28(YES))、統計データエリア14cに登録されている統計データを読み出して、LCD画面13に表示する(ステップS29)。但しこの場合、表示されるのは、入力された全ての統計データではなく、削除されていない最新のMax組数の統計データとなる。   Further, when display of the input statistical data is instructed by a predetermined operation of the key input unit 12 by the user, the statistical data input is ended (step S21 (NO)), and the statistical calculation data is not displayed (step S24). (NO)) Since the input statistical data is displayed (step S28 (YES)), the statistical data registered in the statistical data area 14c is read and displayed on the LCD screen 13 (step S29). However, in this case, what is displayed is not all the input statistical data but the statistical data of the latest Max number of sets not deleted.

ここで、ユーザのキー入力部12の所定の操作によって、入力統計データを修正せずに(ステップS30(NO))、統計データの入力に戻ることを指定されたならば、あるいは、何も操作されずに所定の時間が経過したならば(ステップS31(YES))、前記ステップS21に戻る。   Here, if it is designated by the predetermined operation of the key input unit 12 by the user to return to the input of statistical data without correcting the input statistical data (step S30 (NO)), or no operation is performed. If a predetermined time has passed without being (step S31 (YES)), the process returns to step S21.

これに対して、入力統計データを修正する場合には(ステップS30(YES))、ユーザのキー入力部12の操作による入力統計データの修正を受ける(ステップS32)。この際、修正前後の統計データは、入力バッファ14b等に記憶しておく。そして、修正前の統計データを統計計算データエリア14eに記憶された各統計計算データから削除するする計算を行い(ステップS33)、その各結果に対して、修正後の統計データを追加する計算を行って、各結果を統計計算データエリア14eに上書き記憶する(ステップS34)。その後、前記ステップS29に戻って、修正後の統計データのLCD画面13への表示を行うこととなる。   On the other hand, when the input statistical data is corrected (step S30 (YES)), the input statistical data is corrected by the user's operation of the key input unit 12 (step S32). At this time, the statistical data before and after correction is stored in the input buffer 14b or the like. Then, a calculation for deleting the statistical data before correction from each statistical calculation data stored in the statistical calculation data area 14e is performed (step S33), and a calculation for adding the corrected statistical data to each result is performed. Then, each result is overwritten and stored in the statistical calculation data area 14e (step S34). Thereafter, returning to the step S29, the corrected statistical data is displayed on the LCD screen 13.

例えば、統計演算が統計データxに関する総和Σxであれば、前記ステップS33での削除計算は、Σxから修正前の統計データxを減算する処理であり、前記ステップS34での追加計算は、その結果に修正後の統計データx’を加算する処理である。また、統計演算が統計データxに関する2乗和Σxであれば、前記ステップS33での削除計算は、Σxから修正前の統計データxの2乗xを減算する処理であり、前記ステップS34での追加計算は、その結果に修正後の統計データx’の2乗x’を加算する処理である。 For example, if the statistical calculation is the sum Σx regarding the statistical data x, the deletion calculation in step S33 is a process of subtracting the statistical data x before correction from Σx, and the additional calculation in step S34 To the statistical data x ′ after correction. Further, if the statistical calculation is the square sum Σx 2 regarding the statistical data x, the deletion calculation in the step S33 is a process of subtracting the square x 2 of the statistical data x before correction from the Σx 2. additional calculations in S34 is a process of adding a 2 'square x' of the results are corrected statistics x.

このように、統計データの修正に応じて、修正前の統計データと修正後の統計データとを用いて、統計計算データにその修正を反映することができる。   As described above, according to the correction of the statistical data, the correction can be reflected in the statistical calculation data by using the statistical data before the correction and the statistical data after the correction.

一方、ユーザのキー入力部12の所定の操作によって統計計算処理の終了が指示されると、統計データ入力を終了し(ステップS21(NO))、統計計算データの表示を行わないで(ステップS24(NO))、入力統計データも表示せずに(ステップS28(NO))、終了と判定されて(ステップS35)、この統計計算処理が終了され、前記関数電卓10は、別の関数演算処理を実施可能な状態に戻る。   On the other hand, when the end of the statistical calculation process is instructed by a predetermined operation of the key input unit 12 by the user, the statistical data input is ended (step S21 (NO)), and the statistical calculation data is not displayed (step S24). (NO)) Without displaying the input statistical data (step S28 (NO)), it is determined that the process is finished (step S35), the statistical calculation process is finished, and the scientific calculator 10 performs another function calculation process. Return to the state where can be implemented.

図5は、前記関数電卓10の第1実施形態の統計計算処理に伴う表示の変遷の具体例を示す図である。   FIG. 5 is a diagram illustrating a specific example of the display transition associated with the statistical calculation process of the scientific calculator 10 according to the first embodiment.

前記ステップS16乃至ステップS21により統計データが入力されていくと、LCD画面13には、図5(A)に示すように、その入力統計データが順次表示されていく。なおここでは、LCD画面13が4行分の表示エリアしか有しておらず、統計データエリア14cの容量は80個分の統計データ分であり、2変数統計演算が指定されているものとする。   When statistical data is input in steps S16 to S21, the input statistical data is sequentially displayed on the LCD screen 13 as shown in FIG. Here, it is assumed that the LCD screen 13 has only four lines of display area, the capacity of the statistical data area 14c is 80 pieces of statistical data, and two-variable statistical calculation is designated. .

従って、41個目の統計データx,yを入力すると、前記ステップS22により、LCD画面13には、図5(B)に示すように、古い統計データを削除する旨のメッセージが表示される。なお、フローチャートには示していないが、ここで「AC」(クリア)キーが操作されると、入力統計データ及び計算した各統計計算データを破棄し、また、データ個数n及びデータ記憶個数mをそれぞれデクリメントして、図5(A)の状態に戻すことができる。   Accordingly, when the 41st statistical data x and y are input, a message to delete the old statistical data is displayed on the LCD screen 13 as shown in FIG. Although not shown in the flowchart, when the “AC” (clear) key is operated here, the input statistical data and the calculated statistical calculation data are discarded, and the number of data n and the number of stored data m are set. Each can be decremented to return to the state of FIG.

図5(B)に示す古い統計データを削除する旨のメッセージに応じて「EXE」(実行)キーの操作により削除確認がなされると、前記ステップS23により、古い統計データの削除処理が行われ、前記ステップS20にて、空いた統計データエリア14cに前記41個目の統計データx,yが記憶されて、LCD画面13は、図5(C)に示すような表示となる。   When deletion is confirmed by operating the “EXE” (execution) key in response to a message to delete old statistical data shown in FIG. 5B, old statistical data is deleted in step S23. In step S20, the 41st statistical data x and y are stored in the free statistical data area 14c, and the LCD screen 13 is displayed as shown in FIG.

ここで、例えばカーソルキーによりカーソル移動操作が行われると、前記ステップS28から前記ステップS29に進み、その操作に応じて統計データの表示がスクロールされていく。但し、削除してしまった統計データについては表示できないので、LCD画面13には、図5(D)に示すように、その旨の表示を行うこととなる。   Here, for example, when a cursor movement operation is performed using a cursor key, the process proceeds from step S28 to step S29, and the display of statistical data is scrolled according to the operation. However, since the deleted statistical data cannot be displayed, a display to that effect is displayed on the LCD screen 13 as shown in FIG.

そして、統計データの入力に戻ることを指定されたならば、あるいは、何も操作されずに所定の時間が経過したならば、前記ステップS31からステップS21、ステップS24、ステップS28を経てステップS29に戻り、LCD画面13には、図5(E)に示すように、表示可能な統計データが表示されることとなる。   If it is designated to return to the input of statistical data, or if a predetermined time has passed without any operation, the process proceeds from step S31 to step S21 through step S21, step S24, and step S28. Returning, the displayable statistical data is displayed on the LCD screen 13 as shown in FIG.

なお、前記ステップS22における古いデータを削除する旨のメッセージ表示は、1回目のみとして、2回目からはその表示を省略して直ちにステップS23の古いデータの削除処理に進むようにしても構わない。   Note that the message display indicating that old data is deleted in step S22 may be displayed only for the first time, the display may be omitted from the second time, and the process may immediately proceed to the old data deletion process in step S23.

以上のように、本第1実施形態によれば、統計データエリア14cの容量以上の統計データを登録しようとするとき、新しい統計データは過去の統計データに上書きしていき、上書きされ削除された統計データについては、必用な統計値データを計算して統計計算データエリア14eに保持しておくことにより、限りなく統計データを登録することができる。従って、メモリ容量が限られた低コストの関数電卓において、メモリに保持できる個数以上の統計データを扱うことができる。そして、統計データエリア14cに保持している統計データについては、常に参照及び編集可能である。   As described above, according to the first embodiment, when trying to register statistical data larger than the capacity of the statistical data area 14c, new statistical data is overwritten on the past statistical data, and is overwritten and deleted. As for statistical data, statistical data can be registered without limitation by calculating necessary statistical value data and storing it in the statistical calculation data area 14e. Therefore, a low-cost scientific calculator with a limited memory capacity can handle more statistical data than can be stored in the memory. The statistical data held in the statistical data area 14c can always be referred to and edited.

また、ユーザに統計データエリア14cが一杯になったことを報知した後に、削除を行うので、ユーザが意図しない削除を実施してしまうことを防止できる。   Moreover, since deletion is performed after notifying the user that the statistical data area 14c is full, it is possible to prevent the user from performing deletion unintended.

また、1変数統計計算と2変数統計計算をユーザ選択でき、その選択に応じて、最大格納組数(Max組数)を設定することで、1変数統計計算を行う場合にも、2変数統計計算を行う場合にも対応できる。   One variable statistical calculation and two variable statistical calculation can be selected by the user, and even if one variable statistical calculation is performed by setting the maximum number of stored sets (Max number of sets) according to the selection, two variable statistics It can also be used when performing calculations.

(第2実施形態)
前記関数電卓10による第2実施形態の統計計算処理自体については、前記第1実施形態のそれと同様であるので、その図示及び説明は省略する。但し、本第2実施形態は、統計計算処理中における古いデータの削除処理が前記第1実施形態のそれとは異なっている。
(Second Embodiment)
Since the statistical calculation processing itself of the second embodiment by the scientific calculator 10 is the same as that of the first embodiment, its illustration and description are omitted. However, the second embodiment is different from that of the first embodiment in old data deletion processing during statistical calculation processing.

図6は、前記関数電卓10による第2実施形態の統計計算処理中における古いデータの削除処理の詳細フローチャートを示す図である。また、図7は、前記関数電卓10の第2実施形態の統計計算処理中における古いデータの削除方法を説明するための図である。以下、図7に示すように、学生の番号とテストの点数との2つを変数とし、平均点や標準偏差を統計計算データとして得る場合を例に説明する。   FIG. 6 is a detailed flowchart of old data deletion processing during statistical calculation processing of the second embodiment by the scientific calculator 10. FIG. 7 is a diagram for explaining a method of deleting old data during the statistical calculation process of the scientific calculator 10 according to the second embodiment. Hereinafter, as shown in FIG. 7, an example will be described in which two of the student number and the test score are used as variables, and the average score and standard deviation are obtained as statistical calculation data.

本実施形態における古いデータの削除処理は、まず、条件、例えば、偏差値±10を削除対象として設定し(ステップS23A)、統計データエリア14cの先頭データを指定する(ステップS23B)。   In the process of deleting old data in this embodiment, first, a condition, for example, a deviation value ± 10 is set as a deletion target (step S23A), and the top data of the statistical data area 14c is designated (step S23B).

そして、指定の統計データが、前記設定された条件に合致する場合、つまり、削除対象である場合には(ステップS23C(YES))、統計データエリア14cから指定データを削除して、データを詰める(ステップS23D)。即ち、後で入力統計データを修正しなければならないデータというのは、入力ミス等で誤ったデータであり、桁数が違っていたり、他のデータとかけ離れた値であったりすることが多い。そのような特異点であるデータは残しておく必要があるが、特異点でないデータは修正される可能性が非常に低いので、削除してしまっても構わない。そこで、前記設定された条件に合致すれば、特異点でないデータであるので、統計データエリア14cから削除して、統計データエリア14cの空きエリアを増やすようにしている。   If the designated statistical data matches the set condition, that is, if the designated statistical data is to be deleted (step S23C (YES)), the designated data is deleted from the statistical data area 14c and the data is packed. (Step S23D). In other words, the data for which the input statistical data has to be corrected later is erroneous data due to an input error or the like, and is often different in the number of digits or far from other data. Although it is necessary to leave such data that is a singular point, data that is not a singular point is very unlikely to be modified and may be deleted. Therefore, if the set condition is met, the data is not a singular point, so the data is deleted from the statistical data area 14c to increase the free area of the statistical data area 14c.

その後、データ個数/データ記憶個数/最大格納組数エリア14fに設定されているデータ記憶個数mをデクリメントし、そのデクリメント結果をデータ個数/データ記憶個数/最大格納組数エリア14fに上書きする(ステップS23E)。そして、統計データエリア14cに次の統計データがあれば(ステップS23F(YES))、該次の統計データを指定して(ステップS23G)、前記ステップS23Cに戻る。   Thereafter, the data storage number m set in the data number / data storage number / maximum storage set number area 14f is decremented, and the decrement result is overwritten in the data number / data storage number / maximum storage set number area 14f (step) S23E). If there is next statistical data in the statistical data area 14c (step S23F (YES)), the next statistical data is designated (step S23G), and the process returns to step S23C.

これに対して、指定の統計データが、前記設定された条件に合致しない場合、つまり、削除対象でない場合には(ステップS23C(NO))、統計データエリア14cに次の統計データがあれば(ステップS23F(YES))、該次の統計データを指定して(ステップS23G)、前記ステップS23Cに戻る。   On the other hand, if the specified statistical data does not match the set condition, that is, if it is not a deletion target (step S23C (NO)), if there is next statistical data in the statistical data area 14c ( Step S23F (YES)), the next statistical data is designated (Step S23G), and the process returns to Step S23C.

そして、統計データエリア14cに登録されていた全ての統計データに対して処理が終了したならば、統計データエリア14cに次の統計データがないので(ステップS23F(NO))、該古いデータの削除処理を終了することとなる。但し、削除できた統計データがなかった場合には(ステップS23H(YES))、もはやそれ以上の統計データの入力が行えないので、エラー表示処理へ進むこととなる。   If the processing is completed for all the statistical data registered in the statistical data area 14c, there is no next statistical data in the statistical data area 14c (step S23F (NO)), and the old data is deleted. Processing will be terminated. However, if there is no statistical data that could be deleted (step S23H (YES)), no more statistical data can be input anymore, and the process proceeds to an error display process.

なお、ここでは、条件として偏差値±10としたが、平均点±20とか、点数が2桁といった、他の条件を指定することができることは勿論である。   Although the deviation value is ± 10 as the condition here, it is needless to say that other conditions such as an average score of ± 20 or a two-digit score can be specified.

また、統計データとして学生の番号とテストの点数との2つを変数とした場合を例に説明したが、他の統計データであっても構わない。その統計データの内容に応じて、特異点でないデータを削除するための条件を適切に設定すれば良い。   Moreover, although the case where the student number and the score of the test are two variables as the statistical data has been described as an example, other statistical data may be used. A condition for deleting data that is not a singular point may be appropriately set according to the contents of the statistical data.

以上のように、本第2実施形態によれば、前記第1実施形態と同様の効果が得られる。   As described above, according to the second embodiment, the same effect as in the first embodiment can be obtained.

さらに、本第2実施形態では、誤入力の可能性のある特徴的な値のみ残して、統計データ登録を継続でき、誤入力があった場合にも、ユーザが発見及び修正が可能になる。   Furthermore, in the second embodiment, statistical data registration can be continued while leaving only characteristic values that may be erroneously input, and even if there is an erroneous input, the user can find and correct it.

なお、前記各実施形態において記載した関数電卓10による動作手法、すなわち、図2A,図2Bのフローチャートに示す統計計算処理、図4及び図6のフローチャートに示す古いデータの削除処理などの各手法は、コンピュータに実行させることができるプログラムとして、メモリカード(ROMカード、RAMカード等)、磁気ディスク(フロッピディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリ等の記憶媒体20に格納して配布することができる。そして、電子式計算機(10)のコンピュータ(11)は、この記憶媒体20に記憶されたプログラムをメモリ14に読み込み、この読み込んだプログラムによって動作が制御されることにより、前記各実施形態において説明した統計計算(及び古いデータの削除)機能を実現し、前述した手法による同様の処理を実行することができる。   The operation methods by the scientific calculator 10 described in the above embodiments, that is, the statistical calculation processing shown in the flowcharts of FIGS. 2A and 2B and the old data deletion processing shown in the flowcharts of FIGS. As a program that can be executed by a computer, a storage medium 20 such as a memory card (ROM card, RAM card, etc.), magnetic disk (floppy disk, hard disk, etc.), optical disk (CD-ROM, DVD, etc.), semiconductor memory, etc. Can be stored and distributed. Then, the computer (11) of the electronic computer (10) reads the program stored in the storage medium 20 into the memory 14, and the operation is controlled by the read program, so that it has been described in each embodiment. A statistical calculation (and deletion of old data) function can be realized, and the same processing as described above can be executed.

また、前記各手法を実現するためのプログラムのデータは、プログラムコードの形態として通信ネットワーク(公衆回線)上を伝送させることができ、この通信ネットワークに接続された通信装置によって前記プログラムデータを電子式計算機(10)のコンピュータ(11)に取り込み、前述した統計計算(及び古いデータの削除)機能を実現することもできる。   The program data for realizing each of the above methods can be transmitted on a communication network (public line) in the form of a program code, and the program data is electronically transmitted by a communication device connected to the communication network. It is also possible to implement the above-described statistical calculation (and deletion of old data) function by taking in the computer (11) of the computer (10).

なお、本願発明は、前記各実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。さらに、前記各実施形態には種々の段階の発明が含まれており、開示される複数の構成要件における適宜な組み合わせにより種々の発明が抽出され得る。例えば、各実施形態に示される全構成要件から幾つかの構成要件が削除されたり、幾つかの構成要件が異なる形態にして組み合わされても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除されたり組み合わされた構成が発明として抽出され得るものである。   Note that the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the invention at the stage of implementation. Further, each of the embodiments includes inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some constituent elements are deleted from all the constituent elements shown in each embodiment or some constituent elements are combined in different forms, the problems described in the column of the problem to be solved by the invention If the effects described in the column “Effects of the Invention” can be obtained, a configuration in which these constituent requirements are deleted or combined can be extracted as an invention.

10…関数電卓
11…制御部(CPU)
12…キー入力部
13…液晶(LCD)画面
14…メモリ
14a…統計計算プログラム
14b…入力バッファ
14c…統計データエリア
14d…指定統計種類エリア
14e…統計計算データエリア
14f…最大格納組数エリア
15…記憶媒体読取部
20…記憶媒体
10 ... scientific calculator 11 ... control unit (CPU)
DESCRIPTION OF SYMBOLS 12 ... Key input part 13 ... Liquid crystal (LCD) screen 14 ... Memory 14a ... Statistical calculation program 14b ... Input buffer 14c ... Statistical data area 14d ... Designated statistical kind area 14e ... Statistical calculation data area 14f ... Maximum storage group number area 15 ... Storage medium reading unit 20 ... Storage medium

Claims (4)

複数組の統計データを入力する統計データ入力手段と、
この統計データ入力手段により入力された複数組の統計データを、予め決められたエリアまで記憶する統計データ記憶手段と、
この統計データ記憶手段により記憶された複数組の統計データを計算して統計計算値を算出する統計計算手段と、
を備え、
前記計算済みの統計データの組のうち、入力ミスで入力された誤った統計データではないと判断すべき条件を設定する設定手段と、
前記統計データ記憶手段が前記予め決められたエリアまで前記統計データの組を記憶した後に、さらに前記統計データ入力手段により統計データの組が新たに入力されたき、前記統計計算手段によって計算済みの統計データの組のうち、前記設定手段により設定された条件を満たす統計データを前記統計データ記憶手段から削除して、前記新たに入力された統計データの組を前記統計データ記憶手段に記憶する統計データ更新手段と、
この統計データ記憶手段に記憶された、統計データ更新手段によって削除された以外の、前記統計計算手段によって計算済みの統計データの組を表示して、修正する統計データ修正手段と、
この統計データ修正手段によって修正された統計データの組を用いて再計算を行って統計計算値を算出する統計再計算手段と、
をさらに備えたことを特徴とする統計計算装置。
Statistical data input means for inputting a plurality of sets of statistical data;
Statistical data storage means for storing a plurality of sets of statistical data input by the statistical data input means up to a predetermined area;
Statistical calculation means for calculating a statistical calculation value by calculating a plurality of sets of statistical data stored by the statistical data storage means;
With
A setting means for setting a condition that should be determined not to be erroneous statistical data input due to an input error in the calculated statistical data set;
After the statistical data storage means stores the set of statistical data up to the predetermined area, the statistical data set is newly inputted by the statistical data input means, and the statistical data already calculated by the statistical calculation means Statistical data for deleting statistical data satisfying the conditions set by the setting means from the statistical data storage means and storing the newly input statistical data sets in the statistical data storage means Update means;
Statistical data correction means for displaying and correcting a set of statistical data calculated by the statistical calculation means other than those deleted by the statistical data update means, stored in the statistical data storage means,
Statistical recalculation means for calculating a statistical calculation value by performing recalculation using the statistical data set corrected by the statistical data correction means,
A statistical calculation apparatus further comprising:
前記統計データ更新手段は、前記統計計算手段によって計算済みの統計データの組の少なくとも一部を前記統計データ記憶手段から削除することを報知する報知手段を有し、該報知手段で前記削除することを報知した後に、前記統計データ記憶手段からの前記計算済みの統計データの組の少なくとも一部の削除を実行することを特徴とする請求項1に記載の統計計算装置。   The statistical data update means has notification means for notifying that at least a part of a set of statistical data calculated by the statistical calculation means is deleted from the statistical data storage means, and the deletion is performed by the notification means. 2. The statistical calculation apparatus according to claim 1, wherein at least a part of the calculated set of statistical data from the statistical data storage unit is deleted after the notification is made. 前記統計計算手段による統計計算として、1変数統計計算と2変数統計計算の何れを行うかユーザ選択する統計計算選択手段をさらに備え、
この統計計算選択手段によって1変数統計計算が選択された場合には、
前記統計データ入力手段は、統計データの組として1個の統計データを入力し、
前記統計データ更新手段は、前記計算済みの統計データの組の少なくとも一部として、計算済みの少なくとも1個の統計データを前記統計データ記憶手段から削除し、
前記統計計算選択手段によって2変数統計計算が選択された場合には、
前記統計データ入力手段は、統計データの組として2個の統計データを入力し、
前記統計データ更新手段は、前記計算済みの統計データの組の少なくとも一部として、計算済みの少なくとも2個の統計データを前記統計データ記憶手段から削除する、
ことを特徴とする請求項1または2に記載の統計計算装置。
As the statistical calculation by the statistical calculation means, further comprises statistical calculation selection means for selecting a user to perform either one-variable statistical calculation or two-variable statistical calculation,
When univariate statistical calculation is selected by this statistical calculation selection means,
The statistical data input means inputs one statistical data as a set of statistical data,
The statistical data update means deletes at least one calculated statistical data from the statistical data storage means as at least part of the set of calculated statistical data,
When bivariate statistical calculation is selected by the statistical calculation selection means,
The statistical data input means inputs two statistical data as a set of statistical data,
The statistical data update means deletes at least two calculated statistical data from the statistical data storage means as at least part of the set of calculated statistical data.
The statistical calculation apparatus according to claim 1 or 2, characterized in that:
電子機器のコンピュータを制御するためのコンピュータ読み込み可能なプログラムであって、
前記コンピュータを、
複数組の統計データを入力する統計データ入力手段、
この統計データ入力手段により入力された複数組の統計データを、予め決められたエリアまで記憶する統計データ記憶手段、
この統計データ記憶手段により記憶された複数組の統計データを計算して統計計算値を算出する統計計算手段、
前記計算済みの統計データの組のうち、入力ミスで入力された誤った統計データではないと判断すべき条件を設定する設定手段、
前記統計データ記憶手段が前記予め決められたエリアまで前記統計データの組を記憶した後に、さらに前記統計データ入力手段により統計データの組が新たに入力されたき、前記統計計算手段によって計算済みの統計データの組のうち、前記設定手段により設定された条件を満たす統計データを前記統計データ記憶手段から削除して、前記新たに入力された統計データの組を前記統計データ記憶手段に記憶する統計データ更新手段、
この統計データ記憶手段に記憶された、統計データ更新手段によって削除された以外の、前記統計計算手段によって計算済みの統計データの組を表示して、修正する統計データ修正手段、
この統計データ修正手段によって修正された統計データの組を用いた再計算を行って統計計算値を算出する統計再計算手段、
として機能させるようにしたコンピュータ読み込み可能なプログラム。
A computer readable program for controlling a computer of an electronic device,
The computer,
Statistical data input means for inputting multiple sets of statistical data,
Statistical data storage means for storing a plurality of sets of statistical data input by the statistical data input means up to a predetermined area;
Statistical calculation means for calculating a statistical calculation value by calculating a plurality of sets of statistical data stored by the statistical data storage means,
Setting means for setting a condition that should be determined not to be erroneous statistical data input due to an input error among the set of calculated statistical data,
After the statistical data storage means stores the set of statistical data up to the predetermined area, the statistical data set is newly inputted by the statistical data input means, and the statistical data already calculated by the statistical calculation means Statistical data for deleting statistical data satisfying the conditions set by the setting means from the statistical data storage means and storing the newly input statistical data sets in the statistical data storage means Update means,
Statistical data correction means for displaying and correcting a set of statistical data calculated by the statistical calculation means other than those deleted by the statistical data update means, stored in the statistical data storage means,
Statistical recalculation means for calculating a statistical calculation value by performing recalculation using a set of statistical data corrected by the statistical data correction means,
A computer-readable program designed to function as a computer.
JP2010073467A 2010-03-26 2010-03-26 Statistical calculation apparatus and program Active JP5589494B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010073467A JP5589494B2 (en) 2010-03-26 2010-03-26 Statistical calculation apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010073467A JP5589494B2 (en) 2010-03-26 2010-03-26 Statistical calculation apparatus and program

Publications (2)

Publication Number Publication Date
JP2011204187A JP2011204187A (en) 2011-10-13
JP5589494B2 true JP5589494B2 (en) 2014-09-17

Family

ID=44880736

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010073467A Active JP5589494B2 (en) 2010-03-26 2010-03-26 Statistical calculation apparatus and program

Country Status (1)

Country Link
JP (1) JP5589494B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6326887B2 (en) 2014-03-20 2018-05-23 カシオ計算機株式会社 Calculation apparatus, calculation method, and program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0760424B2 (en) * 1986-03-24 1995-06-28 シャープ株式会社 Electronic memo device
JPS63103362A (en) * 1986-10-21 1988-05-09 Sharp Corp Compact electronic calculator containing statistical calculation function
JP2001142565A (en) * 1999-11-12 2001-05-25 Sony Corp Information processor
JP4640835B2 (en) * 2006-05-29 2011-03-02 日本電信電話株式会社 Information processing apparatus and program
JP2008282070A (en) * 2007-05-08 2008-11-20 Yamaha Corp Networking equipment and network system
JP2009265962A (en) * 2008-04-25 2009-11-12 Sky Co Ltd Operation log information management system

Also Published As

Publication number Publication date
JP2011204187A (en) 2011-10-13

Similar Documents

Publication Publication Date Title
CN110045953B (en) Method and computing device for generating business rule expression
US10937110B2 (en) Tax calculator, tax calculation method, and storage medium storing program
JP5589494B2 (en) Statistical calculation apparatus and program
JP7176603B2 (en) Computing device, computing method, and program
US10185698B2 (en) Electronic device, computational processing method and storage medium
CN113849071A (en) Character string processing method and device
JP7163705B2 (en) Calculators, calculation methods, and programs
JP5488071B2 (en) Electronic calculator and program
US10114791B2 (en) Electronic apparatus, calculation processing method, and recording medium storing calculation processing program
JP6635132B2 (en) Tax calculator, tax calculation method and tax calculation program
JP7192914B2 (en) Computing device, computational support method and program
JP6528483B2 (en) Computation processing device and program
JP7196477B2 (en) Calculator, display method, and program
US11698882B2 (en) Electronic apparatus, control method of electronic apparatus, and control program of electronic apparatus
JP6759591B2 (en) Electronic equipment and calculation processing programs
EP2804140A1 (en) Data extraction program, data extraction method, and data extraction device
JP5700147B2 (en) Electronic calculator and program
JP2851071B2 (en) Database device
JP5532890B2 (en) Display device and program
JP6311593B2 (en) Display control apparatus, display control method, and program
JP2023045848A (en) Calculator and calculation program
JP5381152B2 (en) Formula arithmetic device and program
JP2011158945A (en) Graph display controller and program
JPH10260941A (en) Computer
JP2009294751A (en) Drawing creation support device and control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20130322

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Effective date: 20131225

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20140121

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140320

A131 Notification of reasons for refusal

Effective date: 20140520

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140604

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: 20140701

A61 First payment of annual fees (during grant procedure)

Effective date: 20140714

Free format text: JAPANESE INTERMEDIATE CODE: A61

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Country of ref document: JP

Ref document number: 5589494