Saturday, December 22, 2007

How to access R engine with Borland Delphi


R is powerful but it is not good looking (console interface high risk for your eyes :p ). Contrary, Delphi as a Rapid Application Development has a large number of extraordinary GUI library. The point here is.... it s very exciting for us if we can combine the good looking face of Delphi and the powerful of R in order to build our own the statistical application.
Can you imagine if you make a software calculating invers of a matrix with Delphi???? If the dimension of matrix is lower than 3x3 its okey, but it s very terrible if you have a huge matrix dimension.Fortunately, R libraries are open. We can access it with our Delphi. So it s not terrible anymore to built mathematical software with Delphi bcause we only access the R library from delphi, sending value to the R library parameters, gain the R result, and we show it on the beautiful GUI of Delphi...It was successful tricks on my final projects...and helped me gaining then bachelor degree of statistics..hehe).
Lets start!
First u must have Delphi is installed on your PC.
Second u must have R is installed on you PC. So many R version but here i used R 2.5.1. U can get it here.
Third, u have to installed RSrv250. It is server to make a communication between R and your application. It s also called (D) COM Server. (D)COM Server provides a COM-Interface to R as well as various COM objects and Active X controls for your applications.
Fourth...Restart your girl...ups i mean computer...sorry :D.
Fifth...u need statconnector client and server. These are unit in pascal language available here.
That zip file contain files like this.












Next
we must acces STATCONNECTORSRVLib_TLB.pas and STATCONNECTORCLNTLib_TLB.pas to make a connection between R and Delphi.
(Please search how to install component in Delphi if you dont know.
If you didnt found it, u can contact me at Yahoo!Messenger :
mahendra025).

You can register your component with your own name, for example i register as RClient and RServer like the picture below (u must write down your own name at

procedure register
below)









Look...i have Delphi VCL like that my Delphi UI like picture below


Here is the screen captured of my sources


I tried making a 3D plot by Delphi using R engine named scatterplot3d. Here is the screen captured of the result



Look! we can get the result of R engine execution on a delphi form. You can make another better GUI then mine depends on your demand.
My purpose has been explained now, that we can build statistical application easily with R's powerful engine and Delphi's beautiful GUI. U can implement it not only on library scatterplot3d but also all of R libraries.

Full sources code of this sample application can be downloaded at
http://rapidshare.com/files/78415356/R_Delphi_Plot.rar.html

Have a nice statistical soft programming..
mahendra statistika ITS 2002

Coming Soon :
How to Access STATISTICA engine with Delphi......

Read More......

Friday, December 21, 2007

eBook - Statistics for Six Sigma Made Easy

This book gives you a step-by-step guides that explain how to understand and implement statistical tools on six sigma methodology. This book contain implementation of statistics tools such as DOE, sampling techniques, Multivariate in six sigma. As a statistician i have to share it.
Sorry, i dont have any picture related to this book.


Statistics for Six Sigma Made Easy
by Warren Brussee ISBN:0071433856
McGraw-Hill © 2004

You can download this book at this link:
http://rapidshare.com/files/..../McGraw.Hill.Statistics.for.Six.Sigma.Made.Easy_.chm.html

Have a nice reading...

Read More......

Thursday, December 20, 2007

Delphi SMS Programming

Helllo, this post is bout programming especially delphi (the only one programming that i know:D-silly) in sms. I use Borland Delphi 7 and the open source component for accessing port ComPort.

You can find this component here http://sourceforge.net/projects/comport/. Some of the script i took from http://www.bengkelprogram.com.
I just make a simple modification of the delphi example. I also use gsm_sms.pas file.


Do not insult my GUI cause of it s only the example. The point here is IT WORKS and GUI later. Here is some screen capture of this software:















I use Siemens C 55 and it works. U can find it at folder ..ComPort\examples\delphi.

Sources, component, and unit regarding to this software can be downloaded at http://rapidshare.com/files/77867281/ComPort.rar

Read More......