Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## Diff of /inst/ultimatead.m[88c2a4] .. [677636] Maximize Restore

### Switch to unified view

`...`
`...`
13
```## You should have received a copy of the GNU General Public License
```
13
```## You should have received a copy of the GNU General Public License
```
14
```## along with Octave; see the file COPYING.  If not, see
```
14
```## along with Octave; see the file COPYING.  If not, see
```
15
```## <http://www.gnu.org/licenses/>.
```
15
```## <http://www.gnu.org/licenses/>.
```
16
16
17
```## -*- texinfo -*-
```
17
```## -*- texinfo -*-
```
18
```## @deftypefn {Function File} {@var{ultimate} =} ultimatead (@var{s},@var{v})
```
18
```## @deftypefn {Function File} {@var{ultimate} =} ultimatead (@var{s}, @var{v})
```
19
```## Calculate the ultimate values by the Additive method.
```
19
```## Calculate the ultimate values by the Additive method.
```
20
```##
```
20
```##
```
21
```## @var{s} is a mxn matrix that contains the run-off triangle, where m is the number of accident-years
```
21
```## @var{s} is a mxn matrix that contains the run-off triangle, where m is the number of accident-years
```
22
```## and n is the number of periods to final development. @var{s} may contain u = m-n complete years.
```
22
```## and n is the number of periods to final development. @var{s} may contain u = m-n complete years.
```
23
```## The value @var{s}(i,k), 1<=i<=m, 0<=k<=n-1 represents the cumulative losses from accident-period i
```
23
```## The value @var{s}(i,k), 1<=i<=m, 0<=k<=n-1 represents the cumulative losses from accident-period i
```
`...`
`...`
47
```## It may be seen it match with the ultimate calculated by the Cape Cod Method.
```
47
```## It may be seen it match with the ultimate calculated by the Cape Cod Method.
```
48
```##
```
48
```##
```
49
```## @seealso {bferguson, quotald, quotapanning}
```
49
```## @seealso {bferguson, quotald, quotapanning}
```
50
```## @end deftypefn
```
50
```## @end deftypefn
```
51
51
52
```function [ultimate] = ultimatead (S,V)
```
52
```function [ultimate] = ultimatead (S, V)
```
53
53
54
```ultimate = ultimatecc(S,V,quotaad(S,V));
```
54
```  ultimate = ultimatecc(S,V,quotaad(S,V));
```
55
55
56
```end
```
56
```end
```