MCPcopy Create free account
hub / github.com/devosoft/avida / Rate

Method Rate

avida-core/source/main/cSpatialResCount.cc:235–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233/* Set the rate variable for one element using the array index */
234
235void cSpatialResCount::Rate(int x, double ratein) const {
236 if (x >= 0 && x < grid.GetSize()) {
237 grid[x].Rate(ratein);
238 } else {
239 assert(false); // x not valid id
240 }
241}
242
243/* Set the rate variable for one element using the x,y coordinate */
244

Callers 2

ModifyCellMethod · 0.45
RateAllMethod · 0.45

Calls 1

GetSizeMethod · 0.45

Tested by

no test coverage detected