Free cookie consent management tool by TermsFeed Policy Generator

Changes between Initial Version and Version 1 of Ticket #1314, comment 8


Ignore:
Timestamp:
12/04/10 14:39:52 (14 years ago)
Author:
swinkler
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1314, comment 8

    initial v1  
    11I have tested MATLAB representations of several formulas including arithmetical as well as logical functions on the Tower dataset; in general, the conversion seems to work properly, the estimated values are equal in HL and in MATLAB. Of course, this still needs more testing and review.
    22
    3 I have identified the following problem: The use of the logarithm function is not straight forward. In HL, Math.Log is used and for a nonpositive number this function returns n.def.; in MATLAB, the log of a negative number is a complex number. We would therefore have to check if the argument is positive or not. I have not yet found a way to solve this, since I have not (yet) found something like the "?" operator we know from C++/C#, e.g.
     3I have identified the following problem: The use of the logarithm function is not straight forward. In HL, Math.Log is used and for a nonpositive number this function returns n.def.; in MATLAB, the log of a negative number is a complex number. If the logarithm of a negative number is the condition of a IF node, then we interpret this as false in HL (because (n.def.>0)==false), and in MATLAB the interpretation is true (because a complex number is not equal to 0).
     4We would therefore have to check if the argument is positive or not. I have not yet found a way to solve this, since I have not (yet) found something like the "?" operator we know from C++/C#, e.g.