double function ( Collection < double [ ] > arg0 ) { AnovaStats loc0 = anovaStats ( arg0 ) ; FDistribution loc1 = new FDistributionImpl ( loc0 . dfbg , loc0 . dfwg ) ; return 1.0 - loc1 . cumulativeProbability ( loc0 . F ) ; }
this implementation uses the org.apache.commons.math.distribution.fdistribution commons-math f distribution implementation to estimate the exactp-value , using the formula p = 1 - cumulativeprobability f where f is the f value and cumulativeprobability is the commons-math implementation of the f distribution . concode_field_sep double F concode_elem_sep int dfbg concode_elem_sep int dfwg concode_field_sep boolean anovaTest concode_elem_sep AnovaStats anovaStats concode_elem_sep double anovaFValue