X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdFindOptimalParam.h;fp=packages%2Fstd%2Fsrc%2FbbstdFindOptimalParam.h;h=6add6fd23715882de92fb9da524960d4da1e048d;hb=532a25e2cc24d2d17f68f22337db205a422406b3;hp=0000000000000000000000000000000000000000;hpb=2959ff54a0f4d13b395781d0eaa6ae0b24ec6524;p=bbtk.git diff --git a/packages/std/src/bbstdFindOptimalParam.h b/packages/std/src/bbstdFindOptimalParam.h new file mode 100644 index 0000000..6add6fd --- /dev/null +++ b/packages/std/src/bbstdFindOptimalParam.h @@ -0,0 +1,63 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#ifndef __bbstdFindOptimalParam_h_INCLUDED__ +#define __bbstdFindOptimalParam_h_INCLUDED__ + +#include "bbstd_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" + +namespace bbstd +{ + +class bbstd_EXPORT FindOptimalParam + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(FindOptimalParam,bbtk::AtomicBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== + BBTK_DECLARE_INPUT(InitStart,double); + BBTK_DECLARE_INPUT(InitEnd,double); + BBTK_DECLARE_INPUT(MinDifference,double); + BBTK_DECLARE_INPUT(String,std::string); + BBTK_DECLARE_INPUT(TransferFile,std::string); + BBTK_DECLARE_OUTPUT(Result,double); + BBTK_PROCESS(Process); + void Process(); + + std::string Replace(std::string command, double value); + int Evaluate( double value ); + + +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(FindOptimalParam,bbtk::AtomicBlackBox); + BBTK_NAME("FindOptimalParam"); + BBTK_AUTHOR("InfoDev"); + BBTK_DESCRIPTION("No Description."); + BBTK_CATEGORY("empty"); + + BBTK_INPUT(FindOptimalParam,InitStart,"Initial Start",double,""); + BBTK_INPUT(FindOptimalParam,InitEnd,"(defalut 100) Initial End ",double,""); + BBTK_INPUT(FindOptimalParam,MinDifference,"(default 1) Minimum (End-Start) to stop iteration ",double,""); + BBTK_INPUT(FindOptimalParam,String,"String script evaluation (use 'XXvalueXX' to be optimice)",std::string,""); + BBTK_INPUT(FindOptimalParam,TransferFile,"File to check the difference",std::string,""); + + BBTK_OUTPUT(FindOptimalParam,Result,"Find optimal parameter",double,""); + + +BBTK_END_DESCRIBE_BLACK_BOX(FindOptimalParam); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +} +// EO namespace bbstd + +#endif // __bbstdFindOptimalParam_h_INCLUDED__ +