Re: [PD] mapping variable-length lists to a fixed length one

2012-05-24 Thread tim vets
thanks for the suggestions, here's the solution I came up with. gr, Tim 2012/5/22 Claude Heiland-Allen cla...@goto10.org On 22/05/12 02:13, tim vets wrote: I have lists of floats from measurements which vary in length (they grow with the duration of the measurements) What would be a good

[PD] mapping variable-length lists to a fixed length one

2012-05-21 Thread tim vets
I have lists of floats from measurements which vary in length (they grow with the duration of the measurements) What would be a good way to map those to a list of, say, 150 items? In concreto: -When variable list A has 15 elements and fixed list B is 150 long, I can simply repeat each value of A

Re: [PD] mapping variable-length lists to a fixed length one

2012-05-21 Thread Cyrille Henry
hello, put list A in a table, and use tabread at position : int(list_A_size * X / 149) when X is integer varing from 0 to 149, to create the list_B cheers Cyrille Le 21/05/2012 21:13, tim vets a écrit : I have lists of floats from measurements which vary in length (they grow with the

Re: [PD] mapping variable-length lists to a fixed length one

2012-05-21 Thread Claude Heiland-Allen
On 22/05/12 02:13, tim vets wrote: I have lists of floats from measurements which vary in length (they grow with the duration of the measurements) What would be a good way to map those to a list of, say, 150 items? In concreto: -When variable list A has 15 elements and fixed list B is 150 long,