This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
concepts:tool [2010/11/12 15:51] marcus.williams |
concepts:tool [2010/11/12 15:52] (current) marcus.williams |
||
---|---|---|---|
Line 52: | Line 52: | ||
===== Multidimensional Support ===== | ===== Multidimensional Support ===== | ||
- | TOOL handles multidimensional arrays (objects) in a way that makes the math as simple as working with single value variables. For example to multiply a population stock variable which is broken down by region(reg), gender(gen), time(t) and age(a) by a survival rate by only region time and age the math is simply: | + | TOOL handles multidimensional arrays (objects) in a way that makes the math as simple as working with single-value (i.e. scalar) variables. For example to multiply a population stock variable which is broken down by region(reg), gender(gen), time(t) and age(a) by a survival rate by only region time and age the math is simply: |
<code> | <code> | ||
survivors[reg,gen,t,a] = population[reg,gen,t,a] * survivalRate[reg,t,a] | survivors[reg,gen,t,a] = population[reg,gen,t,a] * survivalRate[reg,t,a] |