public float disc ( float [ ] x , int A , float alpha , float beta ) { float tmp ; tmp = ( float ) Math . cos ( ( float ) A * Math . pow ( x [ 0 ] , beta ) * Math . PI ) ; return ( float ) 1.0 - ( float ) Math . pow ( x [ 0 ] , alpha ) * ( float ) Math . pow ( tmp , 2.0 ) ; }
Calculate a disc shape