% this unction calculates the noise that results over 2 measurements with % time t2 and t1 % assuming that the noise is 1 for a time period of 1. function SNRinverse=min_Noise_Out_1(t1,indices,SumTime,pow,NumPoints,restNoise) t2=SumTime-t1; N1=NoiseWithTime(t1); N2=NoiseWithTime(t2); coeff=(indices/NumPoints).^pow; N_out=(1/NumPoints)*sqrt( coeff(1).^2* N1.^2 + coeff(2).^2 * N2.^2 +restNoise ); %S_out=sum(coeff(1)*t1+coeff(2)*t2); S_out=1; SNRinverse=N_out/S_out;