9#include "FLFigureForwardDeclaration.h"
10#include "DefinitionsMathematics.h"
19 class CInternalLeastSquares;
1209 const CResult Add(
double* pArrX,
double* pArrY, int32_t i32Count);
1247 const CResult Add(int64_t* pArrX, int64_t* pArrY, int32_t i32Count);
1266 const CResult Add(int32_t* pArrX, int32_t* pArrY, int32_t i32Count);
1300 const CResult Get(
size_t stIndex, T** ppTArrX, T** ppTArrY)
const;
1516 DeclareGetClassType();
1519 CInternalLeastSquares<T>* m_pInternal;
Template type array class.
Definition RangeTree.h:19
Top-level base class of FLImaging.
Definition FLBase.h:36
Simplified class representing a point.
Definition TPoint.h:37
FLImaging module execution result object.
Definition ResultsDef.h:1514
A class representing circle.
Definition FLCircle.h:25
A class representing ellipse.
Definition FLEllipse.h:25
A class representing a line.
Definition FLLine.h:25
A base class representing array of figure.
Definition FLPointArray.h:26
A class representing a point.
Definition FLPoint.h:24
A file of class calculating least squares and trends line.
Definition LeastSquares.h:85
const CResult Add(int32_t i32X, int32_t i32Y)
Add data.
const CResult Assign(double *pF64X, double *pF64Y, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult GetPoly(int32_t i32Degree, Base::CFLArray< T > *pFlaResult, T *pTRSquare=nullptr, ECoefficientOrder eOrder=ECoefficientOrder_Descending, ELeastSqauresAccuracy eAccuracy=ELeastSqauresAccuracy_TemplateType)
Finds the polynomial and returns the point.
const CResult GetCircle(CFLCircle< T > &flcResult, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3.) const
A function to find the circle with the minimum distance difference between each point.
const CResult Assign(const Base::CFLArray< Base::TPoint< int32_t > > &flaData)
A function that allocates data and creates a copy of the array.
const CResult Assign(int64_t *pI64X, int64_t *pI64Y, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Add(const CFLPoint< float > *pFlpData)
Add data.
const CResult Assign(const Base::CFLArray< Base::TPoint< float > > &flaData)
A function that allocates data and creates a copy of the array.
const CResult Assign(float *pArr2F32XY, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Assign(const CFLPoint< int64_t > *pData, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Add(const Base::CFLArray< Base::TPoint< int32_t > > *pFlaData)
Add data.
const CResult GetPoly(int32_t i32Degree, Base::CFLArray< T > &flaResult, T *pTRSquare=nullptr, ECoefficientOrder eOrder=ECoefficientOrder_Descending, ELeastSqauresAccuracy eAccuracy=ELeastSqauresAccuracy_TemplateType)
Finds the polynomial and returns the point.
const CResult Add(const CFLPoint< int64_t > *pFlpData)
Add data.
const CResult Assign(int32_t *pArr2I32XY, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Add(const Base::CFLArray< Base::TPoint< float > > *pFlaData)
Add data.
const CResult Assign(const Base::CFLArray< Base::TPoint< double > > &flaData)
A function that allocates data and creates a copy of the array.
const CResult Assign(const CFLPointArray &flpaData)
A function that allocates data and creates a copy of the array.
CLeastSquares()
Default constructor.
const CResult Add(const CFLPoint< int32_t > &flpData)
Add data.
const CResult Add(const CFLFigureArray *pFlfaData)
Add data.
const CResult Add(const Base::CFLArray< Base::TPoint< int64_t > > &flaData)
Add data.
const CResult GetCircle(CFLCircle< T > *pFlcResult, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3.) const
A function to find the circle with the minimum distance difference between each point.
const CResult Add(const Base::CFLArray< Base::TPoint< double > > &flaData)
Add data.
const CResult Add(const CFLPoint< float > &flpData)
Add data.
const CResult Assign(double *pArr2F64XY, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Add(const Base::TPoint< int32_t > &tpData)
Add data.
const CResult Add(const Base::TPoint< int32_t > *pTpData)
Add data.
const CResult Assign(const CFLFigureArray *pFlfaData)
A function that allocates data and creates a copy of the array.
const CResult Assign(const Base::CFLArray< Base::TPoint< double > > *pFlaData)
A function that allocates data and creates a copy of the array.
const CResult GetEllipse(CFLEllipse< T > *pFleResult, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3.) const
A function to find the ellipse with the minimum distance difference between each point.
const CResult Add(const Base::TPoint< int64_t > &tpData)
Add data.
const CResult Assign(int32_t *pI32X, int32_t *pI32Y, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Add(const Base::TPoint< float > &tpData)
Add data.
const CResult Assign(const CFLPointArray *pFlpaData)
A function that allocates data and creates a copy of the array.
const CResult Add(int32_t *pArrX, int32_t *pArrY, int32_t i32Count)
Copy and add data.
Base::TPoint< T > * Get(size_t stIndex) const
Get the data of the specified index.
const CResult Add(const Base::CFLArray< Base::TPoint< double > > *pFlaData)
Add data.
const CResult Assign(const Base::CFLArray< Base::TPoint< float > > *pFlaData)
A function that allocates data and creates a copy of the array.
const CResult Add(const CFLPoint< int64_t > &flpData)
Add data.
const CResult Add(int64_t i64X, int64_t i64Y)
Add data.
const CResult Add(const Base::CFLArray< Base::TPoint< float > > &flaData)
Add data.
const CResult GetPoly(int32_t i32Degree, T *pTResult, T *pTRSquare=nullptr, ECoefficientOrder eOrder=ECoefficientOrder_Descending, ELeastSqauresAccuracy eAccuracy=ELeastSqauresAccuracy_TemplateType)
Finds the polynomial and returns the point.
const CResult Add(const Base::TPoint< float > *pTpData)
Add data.
const CResult Set(const Base::CFLArray< Base::TPoint< T > > *pFlaData)
As a function that allocates data, it allocates only the array pointer address of the parameter witho...
const CResult Add(const CFLPoint< double > &flpData)
Add data.
const CResult GetLine(CFLLine< T > &fllResult, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3.) const
A function to find the line with the minimum distance difference between each point.
const CResult Add(int64_t *pArrX, int64_t *pArrY, int32_t i32Count)
Copy and add data.
const CResult Add(double *pArrX, double *pArrY, int32_t i32Count)
Copy and add data.
const CResult Add(const Base::CFLArray< Base::TPoint< int32_t > > &flaData)
Add data.
const CResult Add(const Base::TPoint< int64_t > *pTpData)
Add data.
const CResult Add(double f64X, double f64Y)
Add data.
const CResult Add(const CFLPoint< double > *pFlpData)
Add data.
const CResult Assign(const Base::CFLArray< Base::TPoint< int64_t > > &flaData)
A function that allocates data and creates a copy of the array.
const CResult Assign(const CFLPoint< float > *pData, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Add(const CFLPointArray &flpaData)
Add data.
const CResult Add(const Base::TPoint< double > &tpData)
Add data.
size_t GetCount()
Get the number of data.
const CResult Get(size_t stIndex, T **ppTArrX, T **ppTArrY) const
Get the data of the specified index.
virtual ~CLeastSquares()
Default destructor.
const CResult Set(T *pTArrX, T *pTArrY, int32_t i32Count)
As a function that allocates data, it allocates only the array pointer address of the parameter witho...
const CResult Clear()
Initialize the parameters.
const CResult Assign(const Base::CFLArray< Base::TPoint< int64_t > > *pFlaData)
A function that allocates data and creates a copy of the array.
const CResult Assign(const CFLPoint< double > *pData, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Assign(const CFLPoint< int32_t > *pData, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Assign(const Base::CFLArray< Base::TPoint< int32_t > > *pFlaData)
A function that allocates data and creates a copy of the array.
const CResult Set(const Base::TPoint< T > *pTpArrXY, int32_t i32Count)
As a function that allocates data, it allocates only the array pointer address of the parameter witho...
const CResult Add(const CFLPoint< int32_t > *pFlpData)
Add data.
const CResult GetLine(CFLLine< T > *pFllResult, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3.) const
A function to find the line with the minimum distance difference between each point.
const CResult Assign(float *pF32X, float *pF32Y, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Assign(int64_t *pArr2I64XY, int32_t i32Count)
A function that allocates data and creates a copy of the array.
const CResult Add(const CFLPointArray *pFlpaData)
Add data.
const CResult Add(float f32X, float f32Y)
Add data.
const CResult Add(const Base::CFLArray< Base::TPoint< int64_t > > *pFlaData)
Add data.
const CResult Assign(const CFLFigureArray &flfaData)
A function that allocates data and creates a copy of the array.
const CResult GetEllipse(CFLEllipse< T > &fleResult, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3.) const
A function to find the ellipse with the minimum distance difference between each point.
const CResult Add(float *pArrX, float *pArrY, int32_t i32Count)
Copy and add data.
const CResult Add(const Base::TPoint< double > *pTpData)
Add data.
const CResult Add(const CFLFigureArray &flfaData)
Add data.
const CResult Set(const Base::CFLArray< Base::TPoint< T > > &flaData)
As a function that allocates data, it allocates only the array pointer address of the parameter witho...
ECoefficientOrder
Indicates the order in which the coefficients are listed.
Definition DefinitionsMathematics.h:118
ELeastSqauresAccuracy
Least Squares calculation accuracy.
Definition LeastSquares.h:29
@ ELeastSqauresAccuracy_Bits128
Definition LeastSquares.h:40
@ ELeastSqauresAccuracy_TemplateType
Definition LeastSquares.h:34
@ ELeastSqauresAccuracy_Bits256
Definition LeastSquares.h:46