private AnovaStats anovaStats(final Collection<double[]> categoryData) throws MathIllegalArgumentException, NullArgumentException {
  MathUtils.checkNotNull(categoryData);
  final Collection<StreamingStatistics> categoryDataSummaryStatistics=new ArrayList<StreamingStatistics>(categoryData.size());
  for (  final double[] data : categoryData) {
    final StreamingStatistics dataSummaryStatistics=new StreamingStatistics();
    categoryDataSummaryStatistics.add(dataSummaryStatistics);
    for (    final double val : data) {
      dataSummaryStatistics.addValue(val);
    }
  }
  return anovaStats(categoryDataSummaryStatistics,false);
}

private AnovaStats anovaStats ( final Collection < double [ ] > categoryData ) throws MathIllegalArgumentException , NullArgumentException { MathUtils . checkNotNull ( categoryData ) ; final Collection < StreamingStatistics > categoryDataSummaryStatistics = new ArrayList < StreamingStatistics > ( categoryData . size ( ) ) ; for ( final double [ ] data : categoryData ) { final StreamingStatistics dataSummaryStatistics = new StreamingStatistics ( ) ; categoryDataSummaryStatistics . add ( dataSummaryStatistics ) ; for ( final double val : data ) { dataSummaryStatistics . addValue ( val ) ; } } return anovaStats ( categoryDataSummaryStatistics , false ) ; }
this method calls the method that actually does the calculations ( except p - value ) .
