Visit Gigasoft's Web Site
 ProEssentials v9 Help

SubsetDegree

Scope

Pego, Pesgo

Type

Property Array of type Int32

Default

Empty

.NET

PePlot.Option.SubsetDegree

Ocx|Vcl

SubsetDegree

DLL

PEP_naSUBSETDEGREE

 

Purpose

This property array controls the best fit degree on a per subset basis. If this property array is not used (empty), then BestFitDegree will control the best fit degree for all subsets.

 

When setting this property array, assign the following constants to each subset index as needed.

 

.NET Gigasoft.Enums.

ActiveX and

 

BestFitDegree.

DLL Constants

Description

Second

PEBFD_2ND(0)

Second degree polynomial.

Third

PEBFD_3RD(1)

Third degree polynomial.

Fourth

PEBFD_4TH(2)

Fourth degree polynomial.

 

Comments

PePlot.Option.SubsetDegree members of Pego.PePlot.Option, Pesgo.PePlot.Option

 

See Also: BestFitCoeffs, PlottingMethod

 

OCX Example

 

The following VB example sets the best fit degree for three subsets:

PEGraph1.SubsetDegree(0) = PEBFD_2ND '(0) first subset best fit type

PEGraph1.SubsetDegree(1) = PEBFD_3RD '(1) second subset best fit type

PEGraph1.SubsetDegree(2) = PEBFD_4TH '(2) third subset best fit type

 

VCL Example

 

The following Delphi example sets the best fit degree for three subsets:

PEGraph1.SubsetDegree[0] := PEBFD_2ND; {[0] set first subset}

PEGraph1.SubsetDegree[1] := PEBFD_3RD; {[1] set second subset}

PEGraph1.SubsetDegree[2] := PEBFD_4TH; {[2] set third subset}

 

C/C++ Example

 

The following C/C++ example sets the best fit degree for three subsets:

int nTmpBestFit[3];

nTmpBestFit[0] = PEBFD_2ND; // first subset best fit type

nTmpBestFit[1] = PEBFD_3RD; // second subset best fit type

nTmpBestFit[2] = PEBFD_4TH; // third subset best fit type

PEvset(hPE, PEP_naSUBSETDEGREE, nTmpBestFit, 3);