Difference between revisions of "Arrays and Indexes"

 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Analytica User Guide]]
 
[[Category:Analytica User Guide]]
<languages />
+
<breadcrumbs>Analytica User Guide > {{PAGENAME}}</breadcrumbs>
<translate>
+
 
[[Analytica User Guide]] > [[Arrays and Indexes]]
 
  
 
Analytica offers powerful features for working with indexes and arrays, with one, two, or many dimensions. Collectively, we refer to them as Intelligent Arrays™. This chapter provides an extended introduction to the essential concepts.
 
Analytica offers powerful features for working with indexes and arrays, with one, two, or many dimensions. Collectively, we refer to them as Intelligent Arrays™. This chapter provides an extended introduction to the essential concepts.
  
'''Arrays''': The value of a variable can be a single number, Boolean, text value, or reference — more generally, an '''''atom '''''— or it can be an '''''array''''', a collection of such values, viewable as a table with one or more dimensions. Here’s an array with two dimensions.
 
 
[[File:Chapter11 1.jpg]]
 
 
'''Indexes''': The dimensions of the variable '''Maintenance_cost '''are identified by the indexes '''Car_type''' and by '''Year'''.
 
 
[[File:Chapter11 2.jpg]]
 
 
'''Intelligent Arrays''': Each index is a separate variable and can be used as a dimension of many arrays. For example, other arrays can be indexed by '''Car type '''or '''Year'''. The fact that Analytica identifies each dimension by a named index provides the basis for the ease and flexibility with which you can create, calculate with, and display arrays with one or many dimensions. It lets expressions and functions work with arrays just the same way they work with single numbers. They automatically generalize to work with arrays without you having to bother with subscripts and '''For '''loops the way you would with other computer languages. We call this set of features '''''Intelligent Arrays'''''™.
 
 
'''Learning key concepts''': There are some subtleties to the effective use of Analytica’s Intelligent Arrays. To fully appreciate them, you might find you need to let go of some of your past experience with spreadsheets or programming languages. But, once you grasp the key ideas, they will seem quite simple and natural. Many Analytica users end up thinking that these features are what make Analytica most valuable. We recommend that you start by reading through the [[Introducing indexes and arrays]], which illustrates key concepts and features. You can then refer to the rest of this chapter and the next chapter, [[More Array Functions]] as needed for details.
 
  
==Contents of the Analytica User Guide Chapter 11==
+
==Sections==
* [[Introducing indexes and arrays]]
+
* [[Intelligent Arrays]]
 +
* [[Indexes and arrays: An introduction]]
 
* [[IF a THEN b ELSE c with arrays]]
 
* [[IF a THEN b ELSE c with arrays]]
 
* [[Creating an index]]
 
* [[Creating an index]]
 
* [[Functions that create indexes]]
 
* [[Functions that create indexes]]
* [[Defining a variable as an edit table]]
+
* [[To make an edit table]]
* [[Editing a table]]
+
* [[To edit a table]]
 
* [[Splice a table when computed indexes change]]
 
* [[Splice a table when computed indexes change]]
 
* [[Subscript and slice of a subarray]]
 
* [[Subscript and slice of a subarray]]
* [[Choice menus in an edit table]]
+
* [[Choice menus and Checkboxes in an edit table]]
 
* [[Shortcuts to navigate and edit a table]]
 
* [[Shortcuts to navigate and edit a table]]
  
 
==See Also==
 
==See Also==
{| style="margin: 1em auto 1em auto;width: 100%;border:0;table-layout: fixed;" cellpadding=5
+
* [[Creating Arrays (Tables)]]
|- style="text-align: center"
+
* [[Tutorial: Arrays]]
| [[Using Expressions]] <- || [[Arrays and Indexes]] || -> [[More Array Functions]]
+
* [[Arrays_-_Part_1_of_2|Arrays - Part 1 of 2]]
|}
+
* [[Array]]
</translate>
+
* [[Table]]
 +
* [[Array Functions and Operators]]
 +
* [[Array functions]]
 +
* [[Ensuring Array Abstraction]]
 +
* [[Array Function Example Variables]]
 +
* [[Array Manipulation Examples and Challenge Problems]]
 +
* [[Typographic conventions in this guide]]
 +
 
 +
 
 +
<footer>Analytica Cloud Platform (ACP) / {{PAGENAME}} /Array functions</footer>

Latest revision as of 17:44, 3 December 2020

Comments


You are not allowed to post comments.