ALGO_UCL_ATY.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /**
  2. * @file ALGO_UCL_ATY.h
  3. *
  4. * @param Project ALGO_Algorithm_ATY_LIB
  5. *
  6. * @author ATY
  7. *
  8. * @copyright
  9. * - Copyright 2017 - 2023 MZ-ATY
  10. * - This code follows:
  11. * - MZ-ATY Various Contents Joint Statement -
  12. * <a href="https://mengze.top/MZ-ATY_VCJS">
  13. * https://mengze.top/MZ-ATY_VCJS</a>
  14. * - CC 4.0 BY-NC-SA -
  15. * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  16. * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
  17. * - Your use will be deemed to have accepted the terms of this statement.
  18. *
  19. * @brief Familiar functions of UCL algorithm
  20. *
  21. * @version
  22. * - 1_01_220605 > ATY
  23. * -# Preliminary version, first Release
  24. ********************************************************************************
  25. */
  26. #ifndef __ALGO_UCL_ATY_H
  27. #define __ALGO_UCL_ATY_H
  28. #include "INCLUDE_ATY.h"
  29. #include "stdlib.h"
  30. #include "math.h"
  31. /******************************* For user *************************************/
  32. // #define __DEBUG_ALGO_UCL_ATY
  33. /******************************************************************************/
  34. uint32_t UCL_CountConvertFt3_1(uint32_t count);
  35. uint32_t* UCL_CountConvertFt3(uint32_t* count, uint8_t size);
  36. uint32_t UCL_CountConvertM3_1(uint32_t count);
  37. uint32_t* UCL_CountConvertM3(uint32_t* count, uint8_t size);
  38. uint32_t UCL_AAverageCalculate(uint32_t* count, uint8_t size);
  39. uint32_t UCL_MAverageCalculate(uint32_t* count, uint8_t size);
  40. uint32_t UCL_SE_Calculate(uint32_t* count, uint8_t size, uint32_t average_M);
  41. uint32_t UCL_Calculate(uint32_t M, uint32_t SE, uint8_t L);
  42. #ifdef __DEBUG_ALGO_UCL_ATY
  43. void UCL_CalculateTest(uint32_t* C, uint8_t N, uint8_t L);
  44. void UCL_Test(void);
  45. #endif /* __DEBUG_ALGO_UCL_ATY */
  46. #endif /* __ALGO_UCL_ATY_H */
  47. /******************************** End Of File *********************************/