double [ ] function ( ) { double [ ] loc0 = new double [ alphas . length ] ; double loc1 = Math . pow ( getAlphaSum ( ) , 2 ) * ( getAlphaSum ( ) + 1 ) ; for ( int loc2 = 0 ; loc2 < alphas . length ; loc2 ++ ) { double loc3 = alphas [ loc2 ] * ( getAlphaSum ( ) - alphas [ loc2 ] ) ; loc0 [ loc2 ] = loc3 / loc1 ; } return loc0 ; }
returns the variance of the dirichlet . concode_field_sep double C concode_elem_sep Logger log concode_elem_sep Random rng concode_elem_sep double[] alphas concode_field_sep double sampleFromGamma concode_elem_sep double getCDF concode_elem_sep double getDensity concode_elem_sep double[] sample concode_elem_sep Map<double[],Double> discretise concode_elem_sep int getDimensions concode_elem_sep double getAlphaSum concode_elem_sep int hashCode concode_elem_sep List<Element> generateXML concode_elem_sep double[] getMean concode_elem_sep String toString concode_elem_sep DirichletDensityFunction copy concode_elem_sep double calculateC