Difference between revisions of "Uncumulate"
JHernandez2 (talk | contribs) |
JHernandez2 (talk | contribs) m (→Examples) |
||
Line 12: | Line 12: | ||
==Examples== | ==Examples== | ||
− | + | Uncumulate(Cost_of_ownership, Time,0) → Car_type ↓ , Time ↑ | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <code>Variable Cost_of_ownership :=</code> | |
− | + | {| border="1" | |
− | {| | + | ! !! colspan="5" style="text-align: left;" | Time ▶ |
− | ! | ||
− | ! | ||
− | ! | ||
− | |||
− | |||
− | |||
|- | |- | ||
− | ! | + | ! style="width:100px;" |'''Car_type ▼ ''' |
− | + | ! style="width:75px;" |'''0''' | |
− | | | + | ! style="width:75px;" |'''1''' |
− | + | ! style="width:75px;" |'''2''' | |
− | + | ! style="width:75px;" |'''3''' | |
− | + | ! style="width:75px;" |'''4''' | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ! 1 | ||
− | ! 2 | ||
− | ! 3 | ||
− | ! 4 | ||
|- | |- | ||
− | ! VW | + | !'''VW''' |
− | | | + | | 2810 |
+ | | 2951 | ||
+ | | 3098 | ||
+ | | 3253 | ||
+ | | 3416 | ||
|- | |- | ||
− | ! Honda | + | !'''Honda ''' |
− | | | + | | 3535 |
+ | | 3847 | ||
+ | | 3897 | ||
+ | | 4166 | ||
+ | | 4365 | ||
|- | |- | ||
− | ! BMW | + | !'''BMW''' |
− | | | + | | 3185 |
+ | | 3294 | ||
+ | | 3409 | ||
+ | | 3529 | ||
+ | | 3656 | ||
|} | |} | ||
− | See | + | ==See Also== |
+ | [[Array_Function_Example_Variables|Example variables]] | ||
==See Also== | ==See Also== |
Revision as of 01:54, 1 November 2015
Uncumulate(x,I, firstElement)
Finds the difference between each element of x and its predecessor along I.
Uncumulate(x, i) returns an array whose first element (along i) is the first element of x, and each other element is the difference between the corresponding element of x and the previous element of x. Uncumulate(x, i, firstElement) returns an array with the first element along i equal to firstElement, and each other element equal to the difference between the corresponding element of x and the previous element of x.
Uncumulate(x, i) is the inverse of Cumulate(x, i). Uncumulate(x, i, 0) is similar to a discrete differential operator.
Examples
Uncumulate(Cost_of_ownership, Time,0) → Car_type ↓ , Time ↑
Variable Cost_of_ownership :=
Time ▶ | |||||
---|---|---|---|---|---|
Car_type ▼ | 0 | 1 | 2 | 3 | 4 |
VW | 2810 | 2951 | 3098 | 3253 | 3416 |
Honda | 3535 | 3847 | 3897 | 4166 | 4365 |
BMW | 3185 | 3294 | 3409 | 3529 | 3656 |
See Also
See Also
Comments
Enable comment auto-refresher