Apportion function
Type: Library, Extra
Aggregates or disaggregates an array of values from one index to another index, where the second index may be larger or smaller. It does not require the indexes to be index multiples of each other. For example, if you map from a 47-element index to a 13-element index, each 3.62 elements of the original map to an element in the destination, so for example, the first 3 items map to the first item, then the fourth item is shared, with 0.62 apportioned to the first element and 0.38 apportioned to the second element. Supports aggregation types 'SUM', 'AVERAGE', 'MIN' and 'MAX'.
Download: Apportion
Author: Paul Sanford, EPRI
Keywords: Arrays, Time series
See Also
Comments
Loading comments...