Collapse All

Anypia Programmer's Documentation |  |

DoubleAnnual::accumulate Method
DoubleAnnual Class DoubleAnnual Members DoubleAnnual Methods Send Feedback

Accumulates data over a range of years.

C++

    double accumulate(
        int year1,
        int year2,
        double startValue
    ) const;

Parameters

Parameters | Description
int year1 | Year with which to start accumulating (inclusive).
int year2 | Year with which to end accumulating (inclusive).
double startValue | Starting value.

Returns

Total of data in the vector over the specified range.

Remarks

Does not check to be sure range of years is within allowable range, unless in debug mode.

Exceptions

Exceptions | Description
PiaException | PiaException of type PIA_IDS_DBLEANN1 if years are out of range, if in debug mode.

Group

DoubleAnnual Methods

Links
DoubleAnnual Class, DoubleAnnual Members, DoubleAnnual Methods

Copyright (c) 2010. All rights reserved.
Contents | Index | Home
What do you think about this topic? Send feedback!