Libraries: ALGLIB - Numerical Analysis Library - page 7

 
Very good library. The MathSign function can also be defined as follows: double MathSign(const double x) { return (x / fabs(x)); } As you can see you occupy much less lines.
 
good artide
 

Hello,

i get the following error with the last alglib update (2023.09.08 17:34). It's caused by function MNLTrainH.

fatal compiler error: code generation failed

Here the minimal example to reproduce it:

#include <math\alglib\alglib.mqh>
CLogitModelShell log_mod;
CMNLReportShell log_mod_rep;
CMatrixDouble log_mod_data;
int log_mod_info = 0;
void OnStart()
  {
      CAlglib::MNLTrainH(log_mod_data, 10, 3, 2, log_mod_info, log_mod, log_mod_rep);   
  }

I hope somebody can help.

Greetings

cn

 

Hello,

i have isolated the code line. The following line 14559 in dataanalysis.mqh is wrong, but i don't know why ?

//--- evaluate the function and gradient at stp
//--- and compute the directional derivative.
x=wa+s*stp+0;
 
Hello, doesn't this library need the Vector.mqh file?
 
Automated-Trading:

ALGLIB - Numerical Analysis Library:

Author: MetaQuotes

Thank you for the good work.