public synchronized void add ( T actual , T predicted , int count ) { if ( matrix . containsKey ( actual ) ) { matrix . get ( actual ) . add ( predicted , count ) ; } else { Multiset < T > counts = HashMultiset . create ( ) ; counts . add ( predicted , count ) ; matrix . put ( actual , counts ) ; } }
Increments the entry specified by actual and predicted by count .