ptrc_test_settings.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef INC_PTRC_TS_SETTINGS_H_
  2. #define INC_PTRC_TS_SETTINGS_H_ 1
  3. #define _PTRC_TS_DIMENSIONALITY 5ul
  4. #define _PTRC_TS_NUM_OF_SPHERES 6ul
  5. #define _PTRC_TS_NUM_OF_RUNS 6ul
  6. #define _PTRC_TS_RANGE_MULTIPLIER 1.0f
  7. #define _PTRC_TS_MIN_SENSOR_UNCERTAINTY 0.0f
  8. #define _PTRC_TS_MAX_SENSOR_UNCERTAINTY 0.5f
  9. #define _PTRC_TS_SENSOR_UNCERTAINTY_INCREMENT 0.01f
  10. #define _PTRC_TS_NUM_OF_CASES_FOR_ONE_INCREMENT 10000ul
  11. #define _PTRC_MAX_ITERATIONS_ON_SPHERE 100ul
  12. #define _PTRC_TS_STATISTICS_FILENAME "stat_report.txt"
  13. #define _PTRC_TS_STATISTICS_DISCRETISATION_STEP 0.001f
  14. #define _PTRC_TS_FLOAT_OUTFORM "%.7f"
  15. //#define _PTRC_TS_DATA_OUTPUT_MODE /* verbose output mode for visualisation */
  16. /* Format description for parsing of visualisation output:
  17. * - the first value - sensor uncertainty (_unc);
  18. * - the second value - max iterations on one sphere (_itr);
  19. * - the third value - dimensionality (_d);
  20. * - the fourth value - number of known spheres;
  21. * - the fifth value - number of start points (runs);
  22. * - the next _d(_d+1) values - centres;
  23. * - the next _d+1 values - radiuses;
  24. * - the next records consist of three parts:
  25. * 1) iteration number (_i);
  26. * 2) _d of new point coordinates;
  27. * 3) lambda value (quality);
  28. * The last two sequence have _i differ by 2, for example:
  29. * 15.000000 ...
  30. * 17.000000 ...
  31. * what means the 17th (differs by 2) sequence is the result
  32. * of the refinement. After that iteration counter resets and
  33. * _i becomes zero.
  34. * The sequence before the last have the number -1 what means
  35. * that it is the final choice of an approximation.
  36. * The last sequence have the number -2 and is real point
  37. * with the distance to approximation (error). */
  38. //#define _PTRC_TS_VERBOSE_MODE /* verbose output mode in human readable form */
  39. #endif /* INC_PTRC_TS_SETTINGS_H_ */