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
lookup_table_type [2013/08/07 17:54]
admin [Lookup Table Type]
lookup_table_type [2020/12/07 19:48] (current)
hermann [Automatic Conversions]
Line 3: Line 3:
 A lookup table is a collection of key and value pairs. Both key and value are represented using double precision [[wp>​Floating_point | floating point numbers]], allowing the definition of integral and fractional keys and value pairs. A lookup table is a collection of key and value pairs. Both key and value are represented using double precision [[wp>​Floating_point | floating point numbers]], allowing the definition of integral and fractional keys and value pairs.
  
-Optionally, a table may include a key and value name.+Optionally, a lookup ​table may also include a key and value names.
  
-===== Automatic Conversions ​=====+===== GUI Editor ​=====
  
-  * **Converted from**: ​[[Table Type]]: the table must have columns “*#​real” and ”#​real”.+[{{ :editors:​lookup_table_editor.png?​nolink |Graphical representation of the lookup ​table editor}}]
  
-  * **Converted to**[[Table Type]].+The editor provides some additional useful operations:
  
-===== GUI Editor =====+It is possible to load the editor content importing the value from a [[wp>​Comma-separated_values|CSV file]]. It is also possible to export the content to a [[wp>​Comma-separated_values|CSV file]].
  
-[{{ :​editors:​lookup_table_editor.png?nolink |Graphical representation of the lookup ​table editor}}]+Two rows can be used to interpolate other rows in betweenThe keys are created incrementing ​the lower selected key until the greatest selected key is reached. The values are interpolated linearly between the two original selected values. 
 + 
 +The table can also be presented as a graph using different representations.
  
 ===== EGO Script ===== ===== EGO Script =====
Line 34: Line 36:
 </​code>​ </​code>​
  
-Optionally, the first two elements may define the key/value names. If the names are omitted, the resulting table uses "​Key"​ and "​Value"​ as the key and value names, respectively. Blanks in names are automatically replaced by "​_"​ (underscore).+Optionally, the first two elements may define the key/value names. The key name must also be optionally suffixed with "​*"​. If the names are omitted, the resulting table uses "​Key"​ and "​Value"​ as the key and value names, respectively. Blanks in names are automatically replaced by "​_"​ (underscore).
  
 <code cpp> <code cpp>
Line 94: Line 96:
  
 When a script is saved, the lookup tables are automatically collapsed using the ''​..''​ notation, if possible. When a script is saved, the lookup tables are automatically collapsed using the ''​..''​ notation, if possible.
 +
 +===== Automatic Conversions =====
 +
 +  * **Converted from**: [[Table Type]]: the table must have columns “*#​real” and ”#​real”. [[Change Matrix Type]], [[Transition Matrix Type]] and [[Percent Matrix Type]].
 +
 +  * **Converted to**: [[Table Type]], [[Change Matrix Type]], [[Transition Matrix Type]], [[Percent Matrix Type]] and [[Int Set]].