Back to FabImage Library website
You are here: Start » Function Reference » Data Classification » Regression Analysis » QuadraticRegression_RANSAC

QuadraticRegression_RANSAC
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Computes quadratic regression of given point set using RANSAC.
Syntax
C++
C#
void fil::QuadraticRegression_RANSAC ( const ftl::Array<float>& inYValues, ftl::Optional<const ftl::Array<float>& > inXValues, ftl::Optional<int> inMaxOutlierCount, float inMaxInlierDistance, ftl::Optional<int> inIterationCount, fil::QuadraticFunction& outQuadraticFunction, ftl::Array<float>& outEstimatedValues, ftl::Array<float>& outResiduals )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inYValues | const Array<float>& | Sequence of ordinates | ||
![]() |
inXValues | Optional<const Array<float>& > | NIL | Sequence of abscissae, or {0, 1, 2, ...} by default | |
![]() |
inMaxOutlierCount | Optional<int> | 0 - ![]() |
NIL | Determines how many outlier points can be present to end the search |
![]() |
inMaxInlierDistance | float | 0.0 - ![]() |
Distance from a parabola for point to be considered an inlier | |
![]() |
inIterationCount | Optional<int> | 1 - ![]() |
NIL | Number of iterations; Auto means that all point triples will be used |
![]() |
outQuadraticFunction | QuadraticFunction& | Quadratic function approximating the given point set | ||
![]() |
outEstimatedValues | Array<float>& | The result of application of the computed function to the X values | ||
![]() |
outResiduals | Array<float>& | Difference between an input Y value and the corresponding estimated value |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Inconsistent size of arrays in QuadraticRegression_RANSAC. |