• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Interesting thread - source code for AGW model

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

    Interesting thread - source code for AGW model

    Here is a GW model that I wrote. it keeps coming up with results that dont correlate with what I can see out of the window

    do I get a grant

    gAveTemp = select ave(annualTemp) from TblResults

    do while not tblResults.eof

    plotpoint = plotpoint +1
    if annualtemp >= gAvetemp then plotpoint(1,2) = annualtemp
    elseif annualtemp < gAvetemp then plotpoint(1,2) = AnnualTemp + rnd(1-6,6) 'add a +ve trend
    endif

    plotpoint(1,2) = plotpoint(1,2) + (currentyear -1998) * 0.1 'wow a hockey stick
    TblResults.movenext

    loop




    (\__/)
    (>'.'<)
    ("")("") Born to Drink. Forced to Work

    #2
    Esteemed Sir.

    Please? You are having codes in C++?

    Thnks

    Gupta Sunnijim

    Comment


      #3
      Originally posted by SupremeSpod View Post
      Esteemed Sir.

      Please? You are having codes in C++?

      Thnks

      Gupta Sunnijim
      sorry gupta, we dont have immigrants in ere, unless you have a job already to move into.
      hang on, theres someone from HR on the phone




      (\__/)
      (>'.'<)
      ("")("") Born to Drink. Forced to Work

      Comment


        #4
        Originally posted by EternalOptimist View Post
        Here is a GW model that I wrote. it keeps coming up with results that dont correlate with what I can see out of the window

        do I get a grant

        gAveTemp = select ave(annualTemp) from TblResults

        do while not tblResults.eof

        plotpoint = plotpoint +1
        if annualtemp >= gAvetemp then plotpoint(1,2) = annualtemp
        elseif annualtemp < gAvetemp then plotpoint(1,2) = AnnualTemp + rnd(1-6,6) 'add a +ve trend
        endif

        plotpoint(1,2) = plotpoint(1,2) + (currentyear -1998) * 0.1 'wow a hockey stick
        TblResults.movenext

        loop




        Do the needful and don't look out of the window.
        +50 Xeno Geek Points
        Come back Toolpusher, scotspine, Voodooflux. Pogle
        As for the rest of you - DILLIGAF

        Purveyor of fine quality smut since 2005

        CUK Olympic University Challenge Champions 2010/2012

        Comment

        Working...
        X