home *** CD-ROM | disk | FTP | other *** search
- unit Function_RootMeanSq;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- Base, StdCtrls, TeEngine, StatChar, Series, ExtCtrls, TeeProcs, Chart;
-
- type
- TRootMeanSqForm = class(TBaseForm)
- Series1: TLineSeries;
- Series2: TLineSeries;
- TeeFunction1: TRMSFunction;
- Label1: TLabel;
- Label2: TLabel;
- CheckBox1: TCheckBox;
- procedure FormCreate(Sender: TObject);
- procedure CheckBox1Click(Sender: TObject);
- private
- { Private declarations }
- Procedure DisplayCalc;
- public
- { Public declarations }
- end;
-
- implementation
-
- {$R *.DFM}
-
- procedure TRootMeanSqForm.FormCreate(Sender: TObject);
- begin
- inherited;
- Series1.FillSampleValues(20);
- DisplayCalc;
- end;
-
- procedure TRootMeanSqForm.CheckBox1Click(Sender: TObject);
- begin
- TeeFunction1.Complete:=CheckBox1.Checked;
- DisplayCalc;
- end;
-
- Procedure TRootMeanSqForm.DisplayCalc;
- begin
- Label2.Caption:=FormatFloat('#.##',Series2.YValues[0]);
- end;
-
- initialization
- RegisterClass(TRootMeanSqForm);
- end.
-