Lines Matching refs:order
93 if (size >= order)
94 memcpy(state, data + size - order, order * sizeof (double));
96 int old = order - size;
99 memcpy(state + order - size, data, size * sizeof (double));
117 for (int i = 0; i < order; i++)
127 Fir(int order_in): order(order_in) // construct Fir object
129 state = new double[order];
131 coef = new double[order + 1];
132 delay = (order + 1) >> 1; // assuming symmetric FIR
143 getOrder(void) // returns filter order
145 return (order);
151 return (order + 1);
157 memcpy(coef, coef_in, (order + 1) * sizeof (double));
163 memcpy(coef_out, coef, (order + 1) * sizeof (double));
178 int init_size = (size <= order)? size : order;
179 int init_order = order;
183 // the first "order" outputs need state in convolution
188 // starting from "order + 1"th output, state is no longer needed
192 double2short(convolve(coef, state_ptr++, order + 1));
201 int group_delay = (order + 1) >> 1;
221 * All FIR filters introduce a delay of "order" samples between input and
224 * "(order + 1) / 2". So filter_nodelay adjusts the group delay in the