ChangeFitType

The ChangeFitType method changes the fit type for the parent autofitplot object.

Syntax

object.ChangeFitType( fitType, Option )

Parameter Type Description
fitType Long required, grfFitTypes
Option Double required, Fit option. See Remarks below and Option property.

Remarks

The meaning of the Option parameter varies according to the fit type. See the Option property for a list of fit types and option values. Use 0, or any other number, for fits where the Option property has no effect.

Example 1

The following example changes the fit type to linear. The Option parameter is set arbitrarily to 0, since it has no effect for a linear fit.

autofitplot.ChangeFitType(fitType:=grfLinearFit, 0)

Example 2

The following example changes the fit type to weighted average with a window width of 31.

autofitplot.ChangeFitType(fitType:=grfWeightedAvgFit, 31)

 

Used by: AutoFitPlot object