hi regression! Try linear regression. Fit a straight line to the data and see how well that works.
Type: Posts; User: mustermeister
hi regression! Try linear regression. Fit a straight line to the data and see how well that works.
The contradiction here is that you say the logging is optional, but the log object is constructed unconditionally. You should only construct it when the option of logging has been chosen. A solution...
No, an empty vector<string> is as good as any other vector<string>. Any function taking such an argument should work equally well whether empty or not.
It's not possible to make all abuse...
Strange thinking, MK. If you don't need it, why not leave it out in the first place?
You're always free to do nothing in your constructors, in particular in your default ones, but that's bad programming practice and contrary to the spirit of the language. The reason why C++ has...
You CAN'T catch an exception from a member object IN the constructor. It seems permitted to do so in the initializer list, but that's terribly bad programming practice. Never do so! You don't WANT to...
I believe you are wrong. You cannot avoid constructing members when the container is constructed. If you don't do so explicitly in the initializer list, the default constructors will be called. This...
Yes, laserlight is right. Use her code. Your mistake was double: You used the var valis outside of its scope AND you used it after it had failed to construct! It's all right, however, to have...
Thanks for the tip. Very interesting. Worth trying.
I know I can accomplish this in other languages. I've been using javascript and perl which both have eval functions, although the string is interpreted and not compiled I think.
I want it in C++...
I would like to pass a string of valid C++ code to a library function which compiles it to machine code and returns it. Then I should be able to call another lib function which executes it. I want...
You don't know what model/equation to use?? That must be part of the problem! If you don't have a curve to fit there is no problem. I mean if you're free to choose ANY curve you could choose the one...
So put the declaration inside the try-catch block. Use grumpy's code.
Let's take the example with adjacent numbers not having a prime sum. You have an implicit static evaluation function for any state of the array (permutation): the number of errors. Each pair of...
An object will always be initialized when you declare it. Why do you want to avoid that? More info please.