Home
last modified time | relevance | path

Searched refs:b_coeffs (Results 1 – 12 of 12) sorted by relevance

/third_party/mindspore/tests/ut/python/dataset/
Dtest_lfilter.py42 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/
Daudio_utils.h120 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()
Dlfilter_op.h32 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/
Dlfilter_ir.cc26 …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()
Dlfilter_ir.h38 …LFilterOperation(const std::vector<float> &a_coeffs, const std::vector<float> &b_coeffs, bool clam…
/third_party/mindspore/mindspore/dataset/audio/
Dtransforms.py550 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)
Dvalidators.py246 [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/
Daudio.cc290 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/
Dbindings.cc245 … .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/
Daudio.h409 explicit LFilter(std::vector<float> a_coeffs, std::vector<float> b_coeffs, bool clamp = true);
/third_party/mindspore/tests/ut/cpp/dataset/
Dexecute_test.cc892 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()
Dc_api_audio_a_to_q_test.cc970 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()