question: public static double pdf ( double x , double lambda ) { if ( x < 0 ) return 0 ; return lambda * Math . exp ( - lambda * x ) ; }
target:  probability density function of the exponential distribution (mean = 1/lambda)