Announcement

Collapse
No announcement yet.

Help with Fisher EFS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with Fisher EFS

    Please look at the following EFS and see if you can tell me why the second line it not a offset imagine of the first. furthermore with the JMA set at Length 2 and Phase -100 it follows the raw data very closely and therefore should resemble the the Fisher.EFS without the JMA but it does not.


    Thank you
    Attached Files

  • #2
    With respect to the EFS file "JMA Fisher", posted 2-FEB-04, there are problems with the following sequence of code segments...

    //////////////////////
    function main(Len, JMA_len, JMA_phase ) {
    var vJMAH, vJMAL, vJMAHL;

    for(i = 0; i < Len; i++)
    if(i == 0){
    MaxH = vJMAH[i];
    MinL = vJMAL[i];
    }
    else{
    MaxH = Math.max(MaxH, vJMAH[-i]);
    MinL = Math.min(MinL, vJMAL[-i]);
    }

    vJMAH = myJMAstudyH.getValue(JurikJMAStudy.JMA, 0, -Len);
    vJMAL = myJMAstudyL.getValue(JurikJMAStudy.JMA, 0, -Len);
    /////////////////////

    vJMAH and vJMAL are Arrays, whose indices must be non-negative. vJMAL[-i] has a negative index.

    Reference is being made to vJMAH and vJMAL before their values are defined.

    ------------------------------------------

    There are problems with the following sequence of code segments...

    //////////////////////
    function main(Len, JMA_len, JMA_phase ) {

    var Fish = 0;

    Fish_1 = Fish;

    Fish = .5 * Math.log((1 + Value1) / (1 - Value1)) + .5 * Fish_1;
    //////////////////////

    Fish is referenced before it is defined with a value other than zero.


    - Mark Jurik
    Jurik Research

    Comment

    Working...
    X