## [Openbts-discuss] a question about the resampledvector in the process of changing the sample rate

 [Openbts-discuss] a question about the resampledvector in the process of changing the sample rate From: intermilan - 2010-08-31 03:21:34 Attachments: Message as HTML ```hi all: I had see the code about how to change the sample rate in the OpenBTS,and there is a question. At first I want to say is there the same value of the interpolation and decimation in the send and receive side? In the other word ,we set the value of the interpolation and decimation at 65 and 96 at the send and receive side? Is that correct? if that is correct,when I saw the function polyphaseResampleVector() which is to change the sample rate,I saw a vector named resampledVector which is to storage the resampled vector.There is a line of code as follow: signalVector *resampledVector = new signalVector((int) ceil(wVector.size()*(float) P / (float) Q));(in the send side: P=96,Q=65;in the recieve side: P=65,Q=96) I think it is to decide the size of the resampledVector. The wVector is the input vector whcih is before the resampling.But why the value is ceil(wVector.size()*(96/65)),if the value of the interpolation and decimation are 65 and 96,should we set the size of the resampledVector at the ceil(wVector.size()*(65/96)? I hope some can help me figure it out. Thank you in advance ```

 [Openbts-discuss] a question about the resampledvector in the process of changing the sample rate From: intermilan - 2010-08-31 03:21:34 Attachments: Message as HTML ```hi all: I had see the code about how to change the sample rate in the OpenBTS,and there is a question. At first I want to say is there the same value of the interpolation and decimation in the send and receive side? In the other word ,we set the value of the interpolation and decimation at 65 and 96 at the send and receive side? Is that correct? if that is correct,when I saw the function polyphaseResampleVector() which is to change the sample rate,I saw a vector named resampledVector which is to storage the resampled vector.There is a line of code as follow: signalVector *resampledVector = new signalVector((int) ceil(wVector.size()*(float) P / (float) Q));(in the send side: P=96,Q=65;in the recieve side: P=65,Q=96) I think it is to decide the size of the resampledVector. The wVector is the input vector whcih is before the resampling.But why the value is ceil(wVector.size()*(96/65)),if the value of the interpolation and decimation are 65 and 96,should we set the size of the resampledVector at the ceil(wVector.size()*(65/96)? I hope some can help me figure it out. Thank you in advance ```