JavaScript Examples

Enter x and y values:


Applet Interface

Regression may be embedded within your own web page with the following HTML tags:

<applet code="Regression.class" width=600 height=400>

<PARAM NAME="showControls" VALUE=true>

</APPLET>

Regression may be scripted using the following Java method calls:

The ShowControls parameter is designed to reduce the screen size of the Applet. This parameter allows the HTML programmer to hide the buttons and data displayed on the left hand side of the applet. JavaScript can be used to added data to the regression applet. You should set the width and height of the applet accordingly if you use this feature.

Use the codebase tag if the Regression.class file is in a different directory than the HTML page that uses the applet. (See source for this page.) Java packages used by Regression, such as the graphics package, must be in subdirectories below the Regression.class file.

Regression.zip may be downloaded for noncommercial use by students and faculty at accredited not-for-profit educational institutions. The zip file being distribted is uncompresssed. It can be used with the new Netscape Archive tag. (See source code for this page.) The archive tag allows Netscape to download the entire Regression package with a single HTTP request to the server. It is much faster than the standard download method which requires a HTTP request for each file. You should, however, keep the uncompressed class files in the class directory so that browers that do not support the archive tag will be able to run the applet.

Regression was written using Java 1.01. It will be rewritten as a Java "Bean"using the newer (and better) Java event model avaliable in Java 1.1. Consequently, this applet is date stamped for July 15, 1997.