METHOD_0 ( ) { double [ ] input = new double [ ] { 0 , 1 , 2 , 3 , 4 , FLOAT_0 } ; double [ ] result = com . IDENT_0 . IDENT_1 . examples . IDENT_2 . IDENT_3 . METHOD_1 ( input , 3 ) ; System . out . println ( java . util . Arrays . toString ( result ) ) ; double [ ] expected = new double [ ] { 1 , 2 , 3 , FLOAT_0 } ; "<AssertPlaceHolder>" ; } METHOD_1 ( double [ ] , int ) { double [ ] IDENT_4 = java . util . Arrays . METHOD_2 ( values , values . length ) ; java . util . Arrays . METHOD_3 ( IDENT_4 , Double :: IDENT_5 ) ; int start = n - 1 ; return java . util . stream . IDENT_6 . range ( start , IDENT_4 . length ) . METHOD_4 ( ( i ) -> { double IDENT_7 = ( i == start ) ? 0 : IDENT_4 [ ( i - n ) ] ; return ( ( IDENT_4 [ i ] ) - IDENT_7 ) / n ; } ) . toArray ( ) ; }
org . junit . Assert . assertArrayEquals ( expected , result , 0.0 )