+ Reply to Thread
Results 1 to 4 of 4

Thread: dec = ?

  1. #1
    TS Contributor
    Points: 11,244, Level: 69
    Level completed: 99%, Points required for next Level: 6

    Location
    Israel
    Posts
    376
    Thanks
    0
    Thanked 3 Times in 3 Posts

    dec = ?



    Hello,

    I was reading a code someone wrote for Isotonic Regression, in one of the lines it say: if (dec ) .....

    what does it means ? I couldn't find the function dec anywhere...

  2. #2
    Bhoot
    Points: 1,434, Level: 21
    Level completed: 34%, Points required for next Level: 66

    Posts
    1,759
    Thanks
    40
    Thanked 128 Times in 107 Posts
    It must be just conditional execution..
    if (expr_1) expr_2 else expr_3

    here dec must be a binary variable.
    In the long run, we're all dead.

  3. #3
    TS Contributor
    Points: 11,244, Level: 69
    Level completed: 99%, Points required for next Level: 6

    Location
    Israel
    Posts
    376
    Thanks
    0
    Thanked 3 Times in 3 Posts
    the command is:

    if (dec) y=-y

    but the thing is, it ain't working !!

  4. #4
    Bhoot
    Points: 1,434, Level: 21
    Level completed: 34%, Points required for next Level: 66

    Posts
    1,759
    Thanks
    40
    Thanked 128 Times in 107 Posts

    You have to be some more detail.

    This could be. If Dec variable is true then assign y = -y
    In the long run, we're all dead.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats