StatsF64.cpp 1012 B

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