Speeding up volAttenForecastScaleCap #482
-
Hi Rob, In the volAttenForecastScaleCap class in rob_system I saw this comment "this is a little slow so suggestions for speeding up are welcome". I have had to deal with a similar problem before, but not in Python, which gave me an idea for an improvement. I have little python expertise, but I offer the following, which seemed much faster when I tested it against a sample forecast series.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Thanks, thats' great but I don't really want to add another third party dependency. |
Beta Was this translation helpful? Give feedback.
-
There are some slight differences in the calculation particularly in the first few years, but I think that is because the old implementation is doing some kind of interpolation... I like it. |
Beta Was this translation helpful? Give feedback.
Committed and credited