Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
working_with_tables [2013/08/21 04:07]
admin
working_with_tables [2013/08/21 04:07] (current)
Line 9: Line 9:
 To highlight the benefits of using Tables, let's start changing one of the tutorial lessons to use table to calculate areas more effectively. The [[tutorial:​incorporating_iterations_into_a_model|original lesson]] uses a loop to calculate the forest area for each one of the Amazon states. But what if we want to calculate the are of all land-use classes for each state? To highlight the benefits of using Tables, let's start changing one of the tutorial lessons to use table to calculate areas more effectively. The [[tutorial:​incorporating_iterations_into_a_model|original lesson]] uses a loop to calculate the forest area for each one of the Amazon states. But what if we want to calculate the are of all land-use classes for each state?
  
-Using Lookup Tables we were forced to use several Muxes to keep track of the area of each land-use class individually. This does not scale very well because the addition of new classes to the input map requires changes ​in model itself. Tables provide a better solution to this problem.+Using Lookup Tables we were forced to use several Muxes to keep track of the area of each land-use class individually. This does not scale very well because the addition of new classes to the input map requires changes ​to the model itself. Tables provide a better solution to this problem.
  
 <​note>​I suggest the customization of the functor "​alias"​ used by the functor in the model. They make the model easier to read and interpret.</​note>​ <​note>​I suggest the customization of the functor "​alias"​ used by the functor in the model. They make the model easier to read and interpret.</​note>​