Fit Function
00000000-398f-47b7-9c11-f1506d391335
Samples inputpoint2 · list · requiredTwo-dimensional samples to fit.Type inputinteger · item · requiredType of function to fit.Metric inputinteger · item · requiredError metric to minimise during fitting.Function outputfunction · itemFunction of the chosen type which best fits the samples.Deviations outputnumber · listSigned vertical deviation of the fitted function from each sample.Error outputnumber · itemTotal deviation of the samples used in the final fit, according to the chosen metric. Root Mean Square for least squares, Mean Absolute Deviation for least deviations, and Largest Absolute Deviation for minimax.⚠️ This content is auto-generated.
Fit a function of a specific type through a set of samples.
- Sm → Two-dimensional samples to fit.
- Tp → Type of function to fit.
- Mt → Error metric to minimise during fitting.
0→ Least Squares1→ Least Deviations2→ Minimax
- Tr → Mechanism for discarding badly fitted samples between fitting rounds.
0→ None1→ Percentage2→ Deviation3→ Sigma4→ Error Target
- Th → Optional trimming threshold, interpreted by the trimming mechanism. A percentage of samples to discard for
Percentagetrimming, a deviation limit forDeviationtrimming, a multiple of the standard deviation forSigmatrimming, or an error value to reach forError Targettrimming.
- Fn → Function of the chosen type which best fits the samples.
- Dv → Signed vertical deviation of the fitted function from each sample.
- Ix → Indices of the samples used in the final fit.
- Er → Total deviation of the samples used in the final fit, according to the chosen metric.
Root Mean Squarefor least squares,Mean Absolute Deviationfor least deviations, andLargest Absolute Deviationfor minimax.