• 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!

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "Interesting thread - source code for AGW model"

Collapse

  • Zippy
    replied
    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.

    Leave a comment:


  • EternalOptimist
    replied
    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




    Leave a comment:


  • SupremeSpod
    replied
    Esteemed Sir.

    Please? You are having codes in C++?

    Thnks

    Gupta Sunnijim

    Leave a comment:


  • EternalOptimist
    started a topic Interesting thread - source code for AGW model

    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




Working...
X