Boost.Time_series library
Hi all,
i ve downloaded the time_series.zip by the link:
http://boost-consulting.com/vault/index.php?directory=Math%20-%20Numerics
and unzip it on my computer.
But the compilation of the example (time_series\time_series\main.cpp)
program fails due to the errors:
c:\boost\time_series\boost\sequence\size.hpp(27) : error C2143: syntax
error : missing ';' before '<'
1> c:\boost\time_series\boost\sequence\size.hpp(33) : see
reference to class template instantiation
'boost::sequence::impl::size' being compiled
1>c:\boost\time_series\boost\sequence\size.hpp(27) : error C4430:
missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\boost\time_series\boost\sequence\size.hpp(27) : error C2238:
unexpected token(s) preceding ';'
1>c:\boost\time_series\boost\sequence\size.hpp(29) : error C2143: syntax
error : missing ';' before '('
1>c:\boost\time_series\boost\sequence\size.hpp(29) : error C4430:
missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\boost\time_series\boost\sequence\size.hpp(30) : error C4430:
missing type specifier - int assumed. Note: C++ does not support default-int
After looking at the file boost\time_series\boost\sequence\size.hpp i
see that the variable name
range_size
in line 27 is unknown. So my question is which file should i include?
I ve searched for the variable name range_size in the time_series folder.
And one possibility is the file boost\detail\range_concepts.hpp.
But is this the right file?
Thanks,
Kim Tang
Hi Kim, Kim Tang wrote:
Hi all,
i ve downloaded the time_series.zip by the link:
http://boost-consulting.com/vault/index.php?directory=Math%20-%20Numerics and unzip it on my computer.
But the compilation of the example (time_series\time_series\main.cpp) program fails due to the errors:
c:\boost\time_series\boost\sequence\size.hpp(27) : error C2143: syntax error : missing ';' before '<' <snip>
After looking at the file boost\time_series\boost\sequence\size.hpp i see that the variable name range_size in line 27 is unknown. So my question is which file should i include? I ve searched for the variable name range_size in the time_series folder. And one possibility is the file boost\detail\range_concepts.hpp. But is this the right file?
Looks like the Time_series library has not been patched to work with Boost v1.35, which had some breaking changes to the Boost.Range library, upon which Time_series is based. The necessary change to sequence/size.hpp is trivial and seems to get things going again. Can you download the latest version from the Vault and see if it fixes your problem? Thanks, -- Eric Niebler BoostPro Computing http://www.boostpro.com
Hi Eric, i just want to point out that Boost.Time_series is not compatible with the current boost release 1.36. The compilation of Boost.time_series together with boost 1.36 was not successful due to some errors. You have written in your description that Boost.Time_series does not yet contain all the algorithms one might want in order to perform full time series analysis. Does it mean that the user should choose Boost.time_series as a starting point to implement the algorithm to perform full time series analysis? Let's say i want to implement an algorithm to calculate the spectral density on a time series. Why is Boost.time_series a good choice for me? Since the library Boost.accumulators already contains many useful functions like count, covariance,.. I would choose it as my starting point. Thanks for your answer, Kim Tang Eric Niebler schrieb:
Hi Kim,
Kim Tang wrote:
Hi all,
i ve downloaded the time_series.zip by the link:
http://boost-consulting.com/vault/index.php?directory=Math%20-%20Numerics
and unzip it on my computer.
But the compilation of the example (time_series\time_series\main.cpp) program fails due to the errors:
c:\boost\time_series\boost\sequence\size.hpp(27) : error C2143: syntax error : missing ';' before '<' <snip>
After looking at the file boost\time_series\boost\sequence\size.hpp i see that the variable name range_size in line 27 is unknown. So my question is which file should i include? I ve searched for the variable name range_size in the time_series folder. And one possibility is the file boost\detail\range_concepts.hpp. But is this the right file?
Looks like the Time_series library has not been patched to work with Boost v1.35, which had some breaking changes to the Boost.Range library, upon which Time_series is based. The necessary change to sequence/size.hpp is trivial and seems to get things going again. Can you download the latest version from the Vault and see if it fixes your problem?
Thanks,
-- Dipl.-Mathematiker. Dr. Kim Kuen Tang Im alten Feld 3a 51429 Bergisch Gladbach Mobil : +49 (0)173 73 82 82 8
Kim Kuen Tang wrote:
Hi Eric,
i just want to point out that Boost.Time_series is not compatible with the current boost release 1.36. The compilation of Boost.time_series together with boost 1.36 was not successful due to some errors.
Thanks for the heads up. I'll look into it.
You have written in your description that Boost.Time_series does not yet contain all the algorithms one might want in order to perform full time series analysis. Does it mean that the user should choose Boost.time_series as a starting point to implement the algorithm to perform full time series analysis?
That's correct. Although what is there may be sufficient for many uses, Boost.Time_series is mostly about getting the concepts correct and the framework in place in the hopes that the "community", or at least one or two other interested people, can help fill in the missing pieces.
Let's say i want to implement an algorithm to calculate the spectral density on a time series. Why is Boost.time_series a good choice for me?
How is your time series represented? Sparse or dense or piecewise constant or ...? Would you like to implement the algorithm once and have it be maximally efficient for all of these different series representations? Then Boost.Time_series is a good choice.
Since the library Boost.accumulators already contains many useful functions like count, covariance,.. I would choose it as my starting point.
If you're only dealing with a dense series, then this is a reasonable approach.
Thanks for your answer,
My pleasure. -- Eric Niebler BoostPro Computing www.boostpro.com
participants (4)
-
Eric Niebler
-
Eric Niebler
-
Kim Kuen Tang
-
Kim Tang