public void addMean ( double [ ] point , double responsibility ) { for ( int i = 0 ; i < mean . numRows ; i ++ ) { mean . data [ i ] += responsibility * point [ i ] ; } weight += responsibility ; }
Helper function for computing Gaussian parameters . Adds the point to mean and weight .