home *** CD-ROM | disk | FTP | other *** search
- unit Function_StdDeviation;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- Base, StdCtrls, TeEngine, StatChar, Series, ExtCtrls, TeeProcs, Chart;
-
- type
- TStdDeviationForm = class(TBaseForm)
- Series1: TLineSeries;
- Series2: TLineSeries;
- TeeFunction1: TStdDeviationFunction;
- Label1: TLabel;
- ComboBox1: TComboBox;
- procedure ComboBox1Change(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- procedure FormShow(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- implementation
-
- {$R *.DFM}
-
- procedure TStdDeviationForm.ComboBox1Change(Sender: TObject);
- begin
- if ComboBox1.ItemIndex=0 then TeeFunction1.Complete:=False
- else TeeFunction1.Complete:=True;
- end;
-
- procedure TStdDeviationForm.FormCreate(Sender: TObject);
- begin
- inherited;
- Series1.FillSampleValues(30);
- end;
-
- procedure TStdDeviationForm.FormShow(Sender: TObject);
- begin
- inherited;
- ComboBox1.ItemIndex:=0;
- end;
-
- initialization
- RegisterClass(TStdDeviationForm);
- end.
-