Searched refs:adap_filter (Results 1 – 2 of 2) sorted by relevance
85 static void adaptive_filter_init(struct yas_adaptive_filter *adap_filter, int len, float noise) in adaptive_filter_init() argument89 adap_filter->num = 0; in adaptive_filter_init()90 adap_filter->index = 0; in adaptive_filter_init()91 adap_filter->noise = noise; in adaptive_filter_init()92 adap_filter->len = len; in adaptive_filter_init()94 for (i = 0; i < adap_filter->len; ++i) { in adaptive_filter_init()95 adap_filter->sequence[i] = 0; in adaptive_filter_init()105 static float adaptive_filter_filter(struct yas_adaptive_filter *adap_filter, float in) in adaptive_filter_filter() argument110 if (adap_filter->len <= 1) { in adaptive_filter_filter()113 if (adap_filter->num < adap_filter->len) { in adaptive_filter_filter()[all …]
63 struct yas_adaptive_filter adap_filter[3]; member