/third_party/mindspore/tests/ut/python/dataset/ |
D | test_lfilter.py | 42 b_coeffs = [0.5, 0.4, 0.2] 43 lfilter_op = audio.LFilter(a_coeffs, b_coeffs, True) 58 b_coeffs = [0.4, 0.5, 0.6] 60 lfilter_op = audio.LFilter(a_coeffs, b_coeffs) 72 def test_invalid_input(test_name, a_coeffs, b_coeffs, clamp, error, error_msg): argument 75 audio.LFilter(a_coeffs, b_coeffs, clamp)(waveform) 79 b_coeffs = [0.1, 0.2, 0.3] 80 …test_invalid_input("invalid a_coeffs parameter type as a string", a_coeffs, b_coeffs, True, TypeEr… 84 b_coeffs = [0.1, 0.2, 0.3] 85 test_invalid_input("invalid a_coeffs parameter value", a_coeffs, b_coeffs, True, ValueError, [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/kernels/ |
D | audio_utils.h | 120 std::vector<T> b_coeffs; in Biquad() local 124 b_coeffs.push_back(b0); in Biquad() 125 b_coeffs.push_back(b1); in Biquad() 126 b_coeffs.push_back(b2); in Biquad() 127 return LFilter(input, output, a_coeffs, b_coeffs, true); in Biquad() 195 std::vector<T> b_coeffs, bool clamp) { in LFilter() argument 207 size_t m_num_order = b_coeffs.size() - 1; in LFilter() 213 for (size_t i = 0; i < b_coeffs.size(); i++) { in LFilter() 214 b_coeffs[i] /= a_coeffs[0]; in LFilter() 238 m_py[m_num_order] += b_coeffs[j] * m_px[m_num_order - j]; in LFilter()
|
D | lfilter_op.h | 32 LFilterOp(std::vector<float> a_coeffs, std::vector<float> b_coeffs, bool clamp) in LFilterOp() argument 33 : a_coeffs_(a_coeffs), b_coeffs_(b_coeffs), clamp_(clamp) {} in LFilterOp()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/ir/kernels/ |
D | lfilter_ir.cc | 26 …FilterOperation(const std::vector<float> &a_coeffs, const std::vector<float> &b_coeffs, bool clamp) in LFilterOperation() argument 27 : a_coeffs_(a_coeffs), b_coeffs_(b_coeffs), clamp_(clamp) {} in LFilterOperation()
|
D | lfilter_ir.h | 38 …LFilterOperation(const std::vector<float> &a_coeffs, const std::vector<float> &b_coeffs, bool clam…
|
/third_party/mindspore/mindspore/dataset/audio/ |
D | transforms.py | 550 def __init__(self, a_coeffs, b_coeffs, clamp=True): argument 552 self.b_coeffs = b_coeffs 556 return cde.LFilterOperation(self.a_coeffs, self.b_coeffs, self.clamp)
|
D | validators.py | 246 [a_coeffs, b_coeffs, clamp], _ = parse_user_args(method, *args, **kwargs) 248 type_check(b_coeffs, (list, tuple), "b_coeffs") 252 for i, value in enumerate(b_coeffs): 255 check_list_same_size(a_coeffs, b_coeffs, "a_coeffs", "b_coeffs")
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/ |
D | audio.cc | 290 Data(const std::vector<float> &a_coeffs, const std::vector<float> &b_coeffs, bool clamp) in Data() 291 : a_coeffs_(a_coeffs), b_coeffs_(b_coeffs), clamp_(clamp) {} in Data() 297 LFilter::LFilter(std::vector<float> a_coeffs, std::vector<float> b_coeffs, bool clamp) in LFilter() argument 298 : data_(std::make_shared<Data>(a_coeffs, b_coeffs, clamp)) {} in LFilter()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/audio/kernels/ir/ |
D | bindings.cc | 245 … .def(py::init([](std::vector<float> a_coeffs, std::vector<float> b_coeffs, bool clamp) { in __anonb7c3dee12302() argument 246 … auto lfilter = std::make_shared<audio::LFilterOperation>(a_coeffs, b_coeffs, clamp); in __anonb7c3dee12302()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/ |
D | audio.h | 409 explicit LFilter(std::vector<float> a_coeffs, std::vector<float> b_coeffs, bool clamp = true);
|
/third_party/mindspore/tests/ut/cpp/dataset/ |
D | execute_test.cc | 892 std::vector<float> b_coeffs = {0.1, 0.2, 0.3}; in TEST_F() local 893 …std::shared_ptr<TensorTransform> lfilter_01 = std::make_shared<audio::LFilter>(a_coeffs, b_coeffs); in TEST_F() 910 std::vector<float> b_coeffs = {0.1, 0.2}; in TEST_F() local 911 …std::shared_ptr<TensorTransform> lfilter_op = std::make_shared<audio::LFilter>(a_coeffs, b_coeffs); in TEST_F()
|
D | c_api_audio_a_to_q_test.cc | 970 std::vector<float> b_coeffs = {0.1, 0.2, 0.3}; in TEST_F() local 971 auto LFilterOp = audio::LFilter(a_coeffs, b_coeffs); in TEST_F() 1011 std::vector<float> b_coeffs = {0.1, 0.2}; in TEST_F() local 1012 auto LFilterOp = audio::LFilter(a_coeffs, b_coeffs); in TEST_F()
|