question: public static Map < Object , Long > valueHistogram ( GeoTimeSerie gts ) { Map < Object , Long > occurrences = new HashMap < Object , Long > ( ) ; for ( int i = 0 ; i < gts . values ; i ++ ) { Object value = GTSHelper . valueAtIndex ( gts , i ) ; if ( ! occurrences . containsKey ( value ) ) { occurrences . put ( value , 1L ) ; } else { occurrences . put ( value , 1L + occurrences . get ( value ) ) ; } } if ( GTSHelper . isBucketized ( gts ) && gts . bucketcount != gts . values ) { occurrences . put ( null , ( long ) ( gts . bucketcount - gts . values ) ) ; } return occurrences ; }
target:  Build an occurrence count by value for the given time serie.