点群からのn次多項式近似
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static int fnFIE_fit_polynomial( DPNT_T_PTR pnts, uint pnt_num, uint degree, f_fit_mode fitting_mode, double param, DOUBLE_PTR coefficient ) |
Visual Basic |
---|
Public Shared Function fnFIE_fit_polynomial ( pnts As DPNT_T_PTR, pnt_num As UInteger, degree As UInteger, fitting_mode As f_fit_mode, param As Double, coefficient As DOUBLE_PTR ) As Integer |
Parameters
- pnts
- Type: fvalgcli..::..DPNT_T_PTR
入力点群
- pnt_num
- Type: System..::..UInt32
入力点群の個数(degree + 1 ≦ pnt_num)
- degree
- Type: System..::..UInt32
近似したい多項式の次数( 1 ≦ degree ≦ 7 )
- fitting_mode
- Type: fvalgcli..::..f_fit_mode
近似モード.- F_FIT_LSM: 最小二乗法。
- F_FIT_MESTIMATOR: ロバスト推定法(M推定法)
- F_FIT_RANSAC ロバスト推定法:(ランザック法)
- F_FIT_MESTIMATOR2: ロバスト推定法(M推定法)...標準偏差を自動決定。
- param
- Type: System..::..Double
最適化パラメータ(ロバスト推定法で利用)
- coefficient
- Type: fvalgcli..::..DOUBLE_PTR
多項式の係数を昇べき順で保持する。要素数は入力 degree + 1 に等しい。
Return Value
Type: Int32以下のエラーコードを返します。
エラーコード:
f_err | 内容 |
---|---|
F_ERR_NONE | 正常終了 |
F_ERR_NOMEMORY | メモリ不足エラー |
F_ERR_INVALID_PARAM | パラメータ異常 |
F_ERR_CALC_IMPOSSIBLE | 計算不可 |
F_ERR_CALC_OVERFLOW | オーバーフロー発生により計算不能 |
F_ERR_NO_LICENCE | ライセンスエラー |