Machine learning in trading: theory, models, practice and algo-trading - page 3300
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Also, theoretically, you can have an array of functions.
What's that? Like making a matrix and an interpreter?
I don't know R syntax - just checked that there is such a possibility there too. But yeah, it looks like it.
It's C++.
Judging by the type x, it is Rcpp. In C++ you can make arrays of pointers to functions and there will be an immediate call of the required function by index, but with the switch it seems to be a sequential search from the beginning to the required variant. Of course, the problem of generating the code of all these functions remains and it is unclear how it will work with Rcpp.
About pointers to functions and their arrays in C++.
And there seems to be no brute force...
this is C++
That's why I made the caveat.
Chat GPT offers some kind of syntax like this
Judging by the type x, it's rcpp.
Yes, it is.
I'll try to test it for speed
switch
If it doesn't work, I'm going to delve into
pointers to functions and their arraysAnd there doesn't seem to be any overkill...
Yes, it is.
I'll try to test it for speed.
If it doesn't work, I'm going to delve into
pointers to functions and their arraysSanych said there were no extremes there, and he was right.
Yes, Sanych wrote that there are no extrema there, and he was wrong, because any function has extrema.
Extrema is the point at which a function reaches the largest (maximum) or smallest (minimum) value on a given interval or in a given area. Extremes can be local, when the function reaches an extreme value only in some neighbourhood of a point, or global, when the function reaches an extreme value over the entire given interval or in a given area.
If all functions are linear, as in the example, you can simply use a regular two-dimensional matrix of coefficients. You can also do volume compression if the matrix is sparse.
No, they're not linear, you're supposed to cram much more complex code into each function...
There's no problem with that in R, you can do whatever you want, but speed(((.
I'm looking for a way to do it in C++.
Yes, Sanych wrote that there are no extrema there, and he was wrong, because any function has extrema.
Extrema is the point at which a function reaches the largest (maximum) or smallest (minimum) value on a given interval or in a given area. Extremes can be local, when the function reaches an extreme value only in some neighbourhood of a point, or global, when the function reaches an extreme value over the entire given interval or in a given area.
There is no function there.
please, enough, past the box office info. I know what optimisation is.