• 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

EternalOptimist

The beerded one
Joined
Jul 8, 2005
Messages
22,492
Likes received
999
Thanks received
191
Location
Castle Saburac
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




:rolleyes:
 
Esteemed Sir.

Please? You are having codes in C++?

Thnks

Gupta Sunnijim
 
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




:rolleyes:
 
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




:rolleyes:

Do the needful and don't look out of the window.
 

Advertisers

Back
Top