int function ( int arg0 ) { double loc0 = Math . exp ( - arg0 ) ; int loc1 = 0 ; double loc2 = 1 ; Random loc3 = new Random ( ) ; do { loc1 ++ ; double loc4 = loc3 . nextDouble ( ) ; loc2 *= loc4 ; } while ( loc2 > loc0 ) ; int loc5 = loc1 - 1 ; return loc5 ; }
return an integer from a poisson distribution with expected failures given as parameter . concode_field_sep int CONSTANT concode_elem_sep String filename concode_elem_sep int nodes concode_elem_sep int failingNodes concode_elem_sep int EXPONENTIAL concode_elem_sep int mttf concode_elem_sep int nBlocks concode_elem_sep List<Integer> failedNodes concode_elem_sep int time concode_elem_sep int GAUSSIAN concode_elem_sep int distrType concode_field_sep String nextFailingNode concode_elem_sep int exponential concode_elem_sep double uniform concode_elem_sep int constant concode_elem_sep void parseArgs concode_elem_sep int nextFailure concode_elem_sep void main concode_elem_sep int gaussian