(2001) 49 2 261 275 Web 1 1 2001 2 21 2001 4 26 Windows OS Web Windows OS, DELPHI, 1. Windows OS. DELPHI Web DELPHI ALGOL PASCAL VISUAL BASIC C++ JAVA DELPHI Windows OS Linux OS KyLix Mac OS (ver 10) JAVA OS 1 2 3 4 5 Web http://apollo.rbm.hiroshima-u.ac.jp/satoh/ 1 734 8553 1 2 3
262 49 2 2001 1.. 2. 1 1983, 1 2 csv, txt prn
Web 263 1. 20 1 (1941 1970 ) 1983, p. 138. Temperature.txt. IO SQL NULL IO SQL Structured Query Language 1 2 SQL 1. SQL DELPHI Enterprise BDE (Boland Database Engine)
264 49 2 2001 2. SQL Temperature.sql. SQL Select * from Temperature.db where < 10 Temperature.db 10 Temperature.db 1 Temperature.txt 3. S-PLUS (Becker et al. (1991)) 1. Temperature.log 1. Plot{ file= Temperature.txt ; xcol= ; ycol= } 2 +, HTML 2 2. 3 2 3 3 2 3 2. Plot{ file= Temperature.txt ; xcol= ; ycol= ; txt=ref( ) }
Web 265 2. Temperature.log X X Y Y 3. Temperature.txt 3. (1) 5 0 (2) 2 3 [, 5), [ 5, 0) [0, + ) (3) 3, txt 4 3. Plot{ file= Temperature.txt ; xcol= ; ycol= ; txt=ref, 5 0, } Bitmap (1)txt= + txt= A.bmp (2) 2 Bitmap (3) 3, A.bmp, B.bmp C.bmp,, #. 5
266 49 2 2001 4. Temperature.txt 3 5. 2 SQL Temperature.sql SQL 1 file Temperature.txt SQL Temperature.sql SQL 5 SQL 2 Temperature.sql where Temperature.txt 5 2 SQL 4. Stat- Graph.pas DELPHI LoadGraph, SaveGraph PrintGraph 3. LoadGraph TCanvas SaveGraph, PrintGraph LoadGraph 1. LoadGraph( const FileName: String; const Canvas: TCanvas; const CanvasRect: TRect )
Web 267 FileName Canvas TCanvas CanvasRect Canvas const CanvasRect Canvas Windows OS API DELPHI Canvas, OS Form1 Canvas Temperature.log 1. StatGraph.LoadGraph( Temperature.log, Form1.Canvas, Form1.ClientRect) SaveGraph 2. SaveGraph( const FileName: String; const ImageFileName: String; const Width, Height: Integer; const Progressive: Boolean ) FileName LoadGraph ImageFileName Width, Height Bitmap Jpeg ImageFileName Jpeg Progressive Temperature.log 400 400 Bitmap Temperature.bmp 2. StatGraph.SaveGraph ( Temperature.log, Temperature.bmp, 400, 400, false) LoadGraph 3. var Bitmap:TBitmap; begin Bitmap:=TBitmap.Create; try with Bitmap do begin Width:=400; Height:=400;
268 49 2 2001 StatGraph.LoadGraph( Temperature.log, Canvas, Rect(0, 0, Width, Height)); SaveToFile( Temperature.bmp ); end; finally Bitmap.Free; end; end; PrintGraph 3. PrintGraph( const FileName: String; const Width, Height: Integer; ) FileName Width, Height Canvas 4000 3000 10 Temperature.log 4. StatGraph.PrintGraph ( Temperature.log, 400, 400).. Active X CGI 1 1 (1) (2) DELPHI 1.
Web 269 program Project1; {$ APPTYPE CONSOLE } // StatGraph uses SysUtils, StatGraph; var FileName: String; // i: Integer; begin // FileName:= ; for i:=1 to ParamCount do begin FileName:=FileName+ParamStr(i); end; // if not FileExists(FileName) then exit; // StatGraph.SaveGraph(FileName, ChangeFileExt(FileName,.jpg ), 400, 400, false); end. 5. Web Web 6 6.
270 49 2 2001 7. 1974 1994 20 (SMR) SMR 2. SMR
Web 271 7. 1995 (1998) Web 2 5 7 1974 1994 20 SMR 20 5 2000
272 49 2 2001 8. Web 5 1 CityId 2 32 1978 2 1994 SMR 1980 SMR 1998 4 6 CGI 1 1. 8 2. DBASE 3.
Web 273 9. 9 4. 5. 6. 6 (1) CGI HTML HIDDEN (2) SQL (3) SQL SQL, (4) 7. : 6 CGI (1997) WINDOWS NT C FORTRAN, S (1998) PERL GNUPLOT, DELPHI : 1997, 1998 3 DLL
274 49 2 2001 Web 4 12 : : (1998). 26 177 180. Becker, R., Chambers, J. and Wilks, A. (1991). S, 1 2 (1995)., (1997). DELPHI, (2000). SMR 68 261 262. (1983). (1997). Web Decomp WWW, 45, 233 243. (1998). DELPHI CGI, (1998). Web CGI,, 11, 45 50.
Proceedings of the Institute of Statistical Mathematics Vol. 49, No. 2, 261 275 (2001) 275 Development of a Statistical Graph Library and Its Application to Web Kenichi Satoh and Megu Ohtaki (Research Institute for Radiation Biology and Medicine, Hiroshima University) With the greatly improved development environments on the Windows OS, it is now easy to create various types of applications, such as console applications, applications with graphical user interface and so on. This paper considers how to construct a statistical graph library that can be generally used in these applications. The actual implementation is explained and we show the Web server application in which the library was embedded. Key words: Windows OS, Delphi, database, graph library.