BIQUADF64.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #include "BIQUADF64.h"
  2. #include "Error.h"
  3. void BIQUADF64::test_biquad_cascade_df2T_f64()
  4. {
  5. arm_biquad_cascade_df2T_f64(&instBiquadDf2T, (float64_t *)this->pSrc, this->pDst, this->nbSamples);
  6. }
  7. void BIQUADF64::setUp(Testing::testID_t id,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr)
  8. {
  9. std::vector<Testing::param_t>::iterator it = params.begin();
  10. this->numStages = *it++;
  11. this->nbSamples = *it;
  12. switch(id)
  13. {
  14. case TEST_BIQUAD_CASCADE_DF2T_F64_1:
  15. samples.reload(BIQUADF64::SAMPLES1_F64_ID,mgr,this->nbSamples);
  16. output.create(this->nbSamples,BIQUADF64::OUT_SAMPLES_F64_ID,mgr);
  17. coefs.reload(BIQUADF64::COEFS1_F64_ID,mgr,this->numStages * 5);
  18. state.create(2*this->numStages,BIQUADF64::STATE_F64_ID,mgr);
  19. arm_biquad_cascade_df2T_init_f64(&instBiquadDf2T,
  20. this->numStages,
  21. coefs.ptr(),
  22. state.ptr());
  23. break;
  24. }
  25. this->pSrc=samples.ptr();
  26. this->pDst=output.ptr();
  27. }
  28. void BIQUADF64::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
  29. {
  30. }