double function ( final T arg0 ) { double loc0 = 0 ; for ( int loc1 = 0 ; loc1 < probabilities . length ; loc1 ++ ) { if ( ( arg0 == null && singletons . get ( loc1 ) == null ) || ( arg0 != null && arg0 . equals ( singletons . get ( loc1 ) ) ) ) { loc0 += probabilities [ loc1 ] ; } } return loc0 ; }
for a random variable x whose values are distributed according tothis distribution , this method returns p x = x . in other words , this method represents the probability mass function pmf for the distribution . note that if x1 and x2 satisfy x1.equals x2 , or both are null , then probability x1 = probability x2 . concode_field_sep long serialVersionUID concode_elem_sep RandomGenerator random concode_elem_sep List<T> singletons concode_elem_sep double[] probabilities concode_field_sep void reseedRandomGenerator concode_elem_sep List<Pair<T,Double>> getPmf concode_elem_sep T sample concode_elem_sep Object[] sample concode_elem_sep T[] sample