Option Property
The Option property returns or sets the fit option value. The value type varies depending on the fit type. Returns a Double.
Syntax
object.Option
object.Option = Option
Parameter | Type | Description |
Option | Double | required, fit value for spline smoothing, polynomial, orthogonal polynomial, running average, or weighted average fits |
Remarks
The Option value's meaning varies depending on fit type.
Fit Type | Option | Range |
Spline Smoothing |
Spline tension factor |
1-50 |
Polynomial |
Polynomial degree |
0-10 |
Orthogonal Polynomial |
Polynomial degree |
0-10 |
Running Average |
Window width |
3-1001, odd numbers |
Weighted Average |
Window width |
3-49, odd numbers |
LOESS |
Span |
0.1-1 |
all other fit types |
No effect |
0 |
Example
This example shows how to set the option for a fit curve.
FitCurve.Option = 5
Used by: AutoFitPlot object