I have an array of values, in which I have to average 12 consecutive values(input length is always multiples of 12) and replicate it six times in output array.
For Example
input = [a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, 12, soon];
Val1 = mean([a1 to a12]);
Val2 = mean([a13 to a24]);
out = [Val1, Val1, Val1, Val1, Val1, Val1, Val2, soon];
Any hints to code this functionalities in AVX?.
Edit: Values are single precision numbers.