StatsF64.cpp 970 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #include "StatsF64.h"
  2. #include <stdio.h>
  3. #include "Error.h"
  4. #include "Test.h"
  5. void StatsF64::test_entropy_f64()
  6. {
  7. (void)arm_entropy_f64(inap,this->nb);
  8. }
  9. void StatsF64::test_kullback_leibler_f64()
  10. {
  11. (void)arm_kullback_leibler_f64(inap,inbp,this->nb);
  12. }
  13. void StatsF64::setUp(Testing::testID_t id,std::vector<Testing::param_t>& paramsArgs,Client::PatternMgr *mgr)
  14. {
  15. std::vector<Testing::param_t>::iterator it = paramsArgs.begin();
  16. this->nb = *it;
  17. inputA.reload(StatsF64::INPUT1_F64_ID,mgr,this->nb);
  18. inap=inputA.ptr();
  19. switch(id)
  20. {
  21. case TEST_KULLBACK_LEIBLER_F64_2:
  22. inputB.reload(StatsF64::INPUT2_F64_ID,mgr,this->nb);
  23. inbp=inputB.ptr();
  24. break;
  25. }
  26. }
  27. void StatsF64::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
  28. {
  29. (void)id;
  30. }