Some wavelet analysis experts have implemented periodic boundary conditions for signals.
I need to implement a circular buffer. Something like: 
"12345abcdefgh12345abcdefgh"
 so that at each step the riightmost element is moved to the leftmost index and everything else is properly shifted:   
"h12345abcdefgh12345abcdefg", "gh12345abcdefgh12345abcdef", ....

My implementation (still debugging) seems to start working but is terribly clumsy.
I am sure that some expert can suggest a more elegant solution,
Thank you.
Maura



tutti i telefonini TIM!


	[[alternative HTML version deleted]]


