Ticket #40640: patch-qucs-filter-qf_filter.cpp.diff
File patch-qucs-filter-qf_filter.cpp.diff, 830 bytes (added by rowue@…, 11 years ago) |
---|
-
qucs-filter/qf_filter.cpp
qf_filter::qf_filter () : 43 43 ncomp (0), Comp (NULL) { 44 44 } 45 45 46 qf_filter::qf_filter (int n = 3, qfk k = UNDEF, qft t = LOWPASS) :46 qf_filter::qf_filter (int n, qfk k, qft t) : 47 47 type (t), kind (k), ord (n), fc (0), bw (0), imp (1), 48 48 ncomp (0), Comp (NULL) { 49 49 } 50 50 51 qf_filter::qf_filter (qfk k = UNDEF, qft t = LOWPASS, qf_double_t r = 1,51 qf_filter::qf_filter (qfk k, qft t, qf_double_t r, 52 52 qf_double_t f = 1, qf_double_t b = 0) : 53 53 type (t), kind (k), fc (f), bw (b), imp (r), ncomp (0), Comp (NULL) { 54 54 fstart = fc - bw / 2; 55 55 fstop = fc + bw / 2; 56 56 } 57 57 58 qf_filter::qf_filter (qfk k = UNDEF, qft t = LOWPASS) :58 qf_filter::qf_filter (qfk k, qft t) : 59 59 type (t), kind (k), ord (0), fc (0), bw (0), imp (1), 60 60 ncomp (0), Comp (NULL) { 61 61 }