You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current SpineInterface access function for StandardTimeSeriesParameterValue does not adequately retrieve time-varying parameter values, as the averaging seems to assume equidistant values. The following example illustrates the problem:
In this example, we have a time-varying testparameter (distances: 1Y, 7Y,1Y). What we would expect when calling the value for the Timeslice(2000~>2009) would be the weighted average:
(5*1 + 5*7 + 5*0)/ 3
but we effectively get:
(5+5+0)/3
The source problem part is function (p::TimePatternParameterValue)(t::TimeSlice), where an unweighted mean is called
The text was updated successfully, but these errors were encountered:
I'd propose to just explicitly integrate the averaging in the function: sum(p.values[a]*(p.indexes[a+1]-p.indexes[a]) for x = a:b)/sum(p.indexes[a+1]-p.indexes[a]) for x = a:b)
The current SpineInterface access function for StandardTimeSeriesParameterValue does not adequately retrieve time-varying parameter values, as the averaging seems to assume equidistant values. The following example illustrates the problem:
In this example, we have a time-varying testparameter (distances: 1Y, 7Y,1Y). What we would expect when calling the value for the Timeslice(2000~>2009) would be the weighted average:
but we effectively get:
The source problem part is
function (p::TimePatternParameterValue)(t::TimeSlice)
, where an unweightedmean
is calledThe text was updated successfully, but these errors were encountered: