Thank you all for help/suggestions.
I think I was most successful in implementing it the way Karthik described
it. My code below:
const float *in = (const float *) input_items[0];
float *out = (float *) output_items[0];
for (int i = 0; i < d_vlen; i++){
temp = in[i] * (i+1);
d_buf
On Mon, Mar 30, 2009 at 09:17:18AM +0200, Martin Braun wrote:
> On Sat, Mar 28, 2009 at 05:35:59PM -0700, Mikhail Tadjikov wrote:
> > Thanks, but I'm trying to get weighted average specifically. I've looked at
> > the
> > code for moving_average... it's close to what I need, but its 1:1 in/out
>
On Sat, Mar 28, 2009 at 05:35:59PM -0700, Mikhail Tadjikov wrote:
> Thanks, but I'm trying to get weighted average specifically. I've looked at
> the
> code for moving_average... it's close to what I need, but its 1:1 in/out
> ratio,
> but I need N:1 ratio. That's the part I'm particular unclear
>
>
> On Sat, Mar 28, 2009 at 9:27 AM, Karthik wrote:
>
>> 2009/3/27 Mikhail Tadjikov
>>
>> Hello,
>>>
>>> I'm trying to build several signal processing blocks for a project that
>>> I'm doing using USRP2. I was going through the examples and sample code
>>> along with browsing the source code
Thanks, but I'm trying to get weighted average specifically. I've looked at
the code for moving_average... it's close to what I need, but its 1:1 in/out
ratio, but I need N:1 ratio. That's the part I'm particular unclear about.
On Sat, Mar 28, 2009 at 9:27 AM, Karthik wrote:
> 2009/3/27 Mikhail
2009/3/27 Mikhail Tadjikov
> Hello,
>
> I'm trying to build several signal processing blocks for a project that
> I'm doing using USRP2. I was going through the examples and sample code
> along with browsing the source code and I can't seem to find exactly what I
> need. I'm trying to do an ave
Hello,
I'm trying to build several signal processing blocks for a project that I'm
doing using USRP2. I was going through the examples and sample code along
with browsing the source code and I can't seem to find exactly what I need.
I'm trying to do an average of a vector of length N:
Input vec