mai

mai(`curve`

,`offset`

)

The MAI function has the following arguments:

`curve`

The curve for which the mai curve is to be calculated.

`width`

The size of the time step to calculate mean annual increment.

Return a mean annual increment curve. The curve is constructed by sampling the curve using the provided period width and calculating the average annual change in value between the interval starting and ending points.

Formula |
Description |
Result |
---|---|---|

mai(curve(0,0, 100,100, 200,0), 100) | Return mai curve. | curve(0,0, 100,1, 200,-1) |