public void add ( MultidimensionalReward other ) { for ( Map . Entry < Integer , Float > entry : other . map . entrySet ( ) ) { Integer dimension = entry . getKey ( ) ; Float reward_value = entry . getValue ( ) ; this . add ( dimension . intValue ( ) , reward_value . floatValue ( ) ) ; } }
Merge in another multidimensional reward structure .