SigUtil
0.95
Utility modules for modern C++
|
収束判定の計算と管理を行うクラス More...
Public Member Functions | |
ManageConvergence (double epsilon, F norm_func=norm_L2) | |
コンストラクタ More... | |
bool | update (T value) |
状態の更新とノルム計算、および収束判定 More... | |
bool | is_convergence () const |
収束判定の計算と管理を行うクラス
反復処理を行う毎にその結果を与え、ノルム計算を行って収束の判定と管理を行う
T | 収束判定を行う数値ベクトルのデータ型 |
C | 誤差基準 |
F | ノルム関数 |
Definition at line 120 of file convergence.hpp.
|
inline |
コンストラクタ
epsilon | 収束判定用の定数(前回のノルム値との差がこの定数未満であれば収束と判定する) |
norm_function | ノルム関数(1引数と2引数のoperator()を定義した関数オブジェクト) |
Definition at line 134 of file convergence.hpp.
|
inline |
Definition at line 149 of file convergence.hpp.
|
inline |
状態の更新とノルム計算、および収束判定
value | ノルムを取りたい数値ベクトル |
Definition at line 142 of file convergence.hpp.