|
From: Nick C. <sr...@us...> - 2001-10-01 18:34:22
|
Update of /cvsroot/repast/repast/uchicago/src/collection In directory usw-pr-cvs1:/tmp/cvs-serv3629 Added Files: RangeMap.java Log Message: A map whose keys are doubles and whose values are Objects. The point here though is that putting objects implies some specified range. For example, map.put(3, obj1); map.put(4, obj2); map.put(10, obj3); associates obj1 with the range [3, 4) (inclusive of 3 and exclusive of 4), so too for obj2 etc. So doing a map.get(3.5) returns obj1. This is to be used for associating objects (network nodes) with probability ranges. The idea being that a particular node can do a uniform random draw, get the node in whose range that draw falls and then make a link with that node. Typical behavoir for lots of network models. |