static float calcNyquist ( int prf , int wave ) { double tmp = ( prf * wave * 0.01 ) * 0.25 ; tmp = tmp * 0.01 ; //Make it m/sec BigDecimal bd = new BigDecimal ( tmp ) ; BigDecimal result = bd . setScale ( 2 , RoundingMode . HALF_DOWN ) ; return result . floatValue ( ) ; }
Calculate of Nyquist velocity