亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? world.html

?? 人工模擬股市(Swarm版本)
?? HTML
字號:
<HTML><HEAD><TITLE></TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF">


<BR><BR><FONT COLOR="#000066"><H1><A NAME="//apple_ref/occ/cl/World">World</A></H1></FONT><BR>



	<blockquote><DL><DT><B>Inherits From:</B></DT>  
	<DD>SwarmObject</DD>
</DL></blockquote>





	<blockquote><DL><DT><B>Declared In:</B></DT>
	<DD>World.h</DD>
	</DL></blockquote>

<BR><BR>


<H2>Class Description</H2>
The World is a class that is mainly used to serve the information needs of BFagents. The WOrld takes price data and converts it into a number of trends, averages, and so forth.<P>

One instance of this object is created to manage the &quot;world&quot; variables 
-- the globally-visible variables that reflect the market itself, 
including the moving averages and the world bits. Everything is based 
on just two basic variables, price and dividend, which are set only by 
the -setPrice: and -setDividend: messages.<P>

The World also manages the list of bits, translating between bit names 
and bit numbers, and providing descriptions of the bits' functions. 
These are done by class methods because they are needed before the 
instnce is instantiated.





	<P><HR WIDTH=50% ALIGN=LEFT>
	<H2>Symbolic Constants</H2>
	<blockquote>
	
		
		<H4>Synopsis:</H4>
		
			<CODE><B><A NAME="//apple_ref/c/econst/UPDOWNLOOKBACK">UPDOWNLOOKBACK</A></B>&nbsp;&nbsp;5</CODE><BR>
		
		
		<H4>Description:</H4>
		Macro: Number of up/down movements to store for price and dividend, 
including the current values. Used for pup, pup1, 
... pup[UPDOWNLOOKBACK-1], and similarly for dup[n], and for 
-pricetrend:. The argument to -pricetrend: must be UPDOWNLOOKBACK 
or less.
		
	
		<hr WIDTH=25% ALIGN=LEFT>
		<H4>Synopsis:</H4>
		
			<CODE><B><A NAME="//apple_ref/c/econst/NMAS">NMAS</A></B>&nbsp;&nbsp;4</CODE><BR>
		
		
		<H4>Description:</H4>
		Macro: Number of moving averages
		
	
		<hr WIDTH=25% ALIGN=LEFT>
		<H4>Synopsis:</H4>
		
			<CODE><B><A NAME="//apple_ref/c/econst/MAXHISTORY">MAXHISTORY</A></B>&nbsp;&nbsp;500</CODE><BR>
		
		
		<H4>Description:</H4>
		Macro: The longest allowed Moving Average
		
	
	</blockquote>













	<P><HR WIDTH=50% ALIGN=LEFT>
	<H2>Instance Variables</H2>
	<blockquote>
	
		<CODE>double <B>intrate</B>;</CODE><BR>
		<CODE>double <B>dividendscale</B>;</CODE><BR>
		<CODE>int <B>pupdown</B>[UPDOWNLOOKBACK];</CODE><BR>
		<CODE>int <B>dupdown</B>[UPDOWNLOOKBACK];</CODE><BR>
		<CODE>int <B>history_top</B>;</CODE><BR>
		<CODE>int <B>updown_top</B>;</CODE><BR>
		<CODE>double <B>price</B>;</CODE><BR>
		<CODE>double <B>oldprice</B>;</CODE><BR>
		<CODE>double <B>dividend</B>;</CODE><BR>
		<CODE>double <B>olddividend</B>;</CODE><BR>
		<CODE>double <B>saveddividend</B>;</CODE><BR>
		<CODE>double <B>savedprice</B>;</CODE><BR>
		<CODE>double <B>riskNeutral</B>;</CODE><BR>
		<CODE>double <B>profitperunit</B>;</CODE><BR>
		<CODE>double <B>returnratio</B>;</CODE><BR>
		<CODE>int <B>malength</B>[NMAS];</CODE><BR>
		<CODE>int <B>nworldbits</B>;</CODE><BR>
		<CODE>int * <B>realworld</B>;</CODE><BR>
		<CODE>BOOL <B>exponentialMAs</B>;</CODE><BR>
		<CODE>id <B>priceMA</B>[NMAS];</CODE><BR>
		<CODE>id <B>divMA</B>[NMAS];</CODE><BR>
		<CODE>id <B>oldpriceMA</B>[NMAS];</CODE><BR>
		<CODE>id <B>olddivMA</B>[NMAS];</CODE><BR>
		<CODE>double * <B>divhistory</B>;</CODE><BR>
		<CODE>double * <B>pricehistory</B>;</CODE><BR>
	<P><TABLE>
	
		<TR><TD>intrate</TD><TD>interest rate</TD></TR>
	
		<TR><TD>dividendscale</TD><TD>The baseline dividend that is set by initWithBaseline:</TD></TR>
	
		<TR><TD>pupdown</TD><TD>array, dimension UPDOWNLOOKBACK</TD></TR>
	
		<TR><TD>dupdown</TD><TD>array, dimension UPDOWNLOOKBACK</TD></TR>
	
		<TR><TD>history_top</TD><TD>index value of current input into history arrays</TD></TR>
	
		<TR><TD>updown_top</TD><TD>number of time steps to look back to form pupdown and dupdown bits</TD></TR>
	
		<TR><TD>price</TD><TD>market clearning price</TD></TR>
	
		<TR><TD>oldprice</TD><TD>previous price</TD></TR>
	
		<TR><TD>dividend</TD><TD>dividend</TD></TR>
	
		<TR><TD>olddividend</TD><TD>previous dividend</TD></TR>
	
		<TR><TD>saveddividend</TD><TD>No description.</TD></TR>
	
		<TR><TD>savedprice</TD><TD>No description.</TD></TR>
	
		<TR><TD>riskNeutral</TD><TD>dividend/intrate</TD></TR>
	
		<TR><TD>profitperunit</TD><TD>price - oldprice + dividend</TD></TR>
	
		<TR><TD>returnratio</TD><TD>profitperunit/oldprice</TD></TR>
	
		<TR><TD>malength</TD><TD>For each MA, we must specify the length over which the average is calculated. This array has one integer for each of the moving averages we plan to keep, and it is used to set the widths covered by the moving averages.</TD></TR>
	
		<TR><TD>nworldbits</TD><TD>The number of aspects of the world that are recorded as bits</TD></TR>
	
		<TR><TD>realworld</TD><TD>An array (dynamically allocated, sorry) of ints, one for each bit being monitored. This is kept up-to-date. There's a lot of pointer math going on with this and I don't feel so glad about it (PJ: 2001-11-01)</TD></TR>
	
		<TR><TD>exponentialMAs</TD><TD>Indicator variable, YES if the World is supposed to report back exponentially weighted moving averages</TD></TR>
	
		<TR><TD>priceMA</TD><TD>MovingAverage objects which hold price information. There are NMAS of these, and have various widths for the moving averages</TD></TR>
	
		<TR><TD>divMA</TD><TD>MovingAverage objects which hold dividend moving averages.</TD></TR>
	
		<TR><TD>oldpriceMA</TD><TD>MovingAverage objects which hold lagged price moving averages</TD></TR>
	
		<TR><TD>olddivMA</TD><TD>MovingAverage objects which hold lagged dividend moving averages</TD></TR>
	
		<TR><TD>divhistory</TD><TD>dividend history array, goes back MAXHISTORY points</TD></TR>
	
		<TR><TD>pricehistory</TD><TD>price history array</TD></TR>
	
	</TABLE>
	</blockquote>




	<P><HR WIDTH=50% ALIGN=LEFT>
	<H2>Method Types</H2>
	<blockquote>
	
		
		<DL><DT></DT>
		
			<DD> <A HREF="#+ descriptionOfBit:">+ descriptionOfBit:</A></DD>
		
			<DD> <A HREF="#+ nameOfBit:">+ nameOfBit:</A></DD>
		
			<DD> <A HREF="#+ bitNumberOf:">+ bitNumberOf:</A></DD>
		
			<DD> <A HREF="#- setintrate:">- setintrate:</A></DD>
		
			<DD> <A HREF="#- setExponentialMAs:">- setExponentialMAs:</A></DD>
		
			<DD> <A HREF="#- getNumWorldBits">- getNumWorldBits</A></DD>
		
			<DD> <A HREF="#- initWithBaseline:">- initWithBaseline:</A></DD>
		
			<DD> <A HREF="#- setPrice:">- setPrice:</A></DD>
		
			<DD> <A HREF="#- getPrice">- getPrice</A></DD>
		
			<DD> <A HREF="#- getProfitPerUnit">- getProfitPerUnit</A></DD>
		
			<DD> <A HREF="#- setDividend:">- setDividend:</A></DD>
		
			<DD> <A HREF="#- getDividend">- getDividend</A></DD>
		
			<DD> <A HREF="#- getRiskNeutral">- getRiskNeutral</A></DD>
		
			<DD> <A HREF="#- updateWorld">- updateWorld</A></DD>
		
			<DD> <A HREF="#- getRealWorld:">- getRealWorld:</A></DD>
		
			<DD> <A HREF="#- pricetrend:">- pricetrend:</A></DD>
		
		</DL>
	
	</blockquote>




	<P><HR WIDTH=50% ALIGN=LEFT>
	<H2>Class Methods</H2>
 
	
		
		<A NAME="+ bitNumberOf:"></A><H3><A NAME="//apple_ref/occ/clm/World/bitNumberOf:">bitNumberOf:</A></H3>
		<CODE>+ (int)<B>bitNumberOf:</B>(const char *)<EM>name</EM>
			
		</CODE><P>
		Converts a bit <I>name</I> to a bit number. Supplies the number of a bit 
given its <I>name</I>. Unknown names return NULLBIT. Relatively slow 
(linear search). Could be made faster with a hash table etc, but 
that's not worth it for the intended usage.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="+ descriptionOfBit:"></A><H3><A NAME="//apple_ref/occ/clm/World/descriptionOfBit:">descriptionOfBit:</A></H3>
		<CODE>+ (const char *)<B>descriptionOfBit:</B>(int)<EM>n</EM>
			
		</CODE><P>
		Supplies a description of the specified bit, taken from the 
bitnamelist[] table below. Also works for NULLBIT.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="+ nameOfBit:"></A><H3><A NAME="//apple_ref/occ/clm/World/nameOfBit:">nameOfBit:</A></H3>
		<CODE>+ (const char *)<B>nameOfBit:</B>(int)<EM>n</EM>
			
		</CODE><P>
		Supplies the name of the specified bit, taken from the 
bitnamelist[] table below. Also works for NULLBIT. Basically, 
it converts a bit number to a bit name.
	


 

	<HR WIDTH=50% ALIGN=LEFT>
	<H2>Instance Methods</H2>
 
	
		
		<A NAME="- getDividend"></A><H3><A NAME="//apple_ref/occ/instm/World/getDividend">getDividend</A></H3><P>
		<CODE>- (double)<B>getDividend</B>
		</CODE><P>
		Returns the most recent dividend, used by many.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- getNumWorldBits"></A><H3><A NAME="//apple_ref/occ/instm/World/getNumWorldBits">getNumWorldBits</A></H3><P>
		<CODE>- (int)<B>getNumWorldBits</B>
		</CODE><P>
		Returns numworldbits; used by the BFagent.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- getPrice"></A><H3><A NAME="//apple_ref/occ/instm/World/getPrice">getPrice</A></H3><P>
		<CODE>- (double)<B>getPrice</B>
		</CODE><P>
		Returns the price, used by many classes.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- getProfitPerUnit"></A><H3><A NAME="//apple_ref/occ/instm/World/getProfitPerUnit">getProfitPerUnit</A></H3><P>
		<CODE>- (double)<B>getProfitPerUnit</B>
		</CODE><P>
		Returns profitperunit, used by Specialist.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- getRealWorld:"></A><H3><A NAME="//apple_ref/occ/instm/World/getRealWorld:">getRealWorld:</A></H3><P>
		<CODE>- <B>getRealWorld:</B>(int *)<EM>anArray</EM>
			
		</CODE><P>
		Returns the real world array of bits. Used by BFagent to compare 
their worlds to the real world.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- getRiskNeutral"></A><H3><A NAME="//apple_ref/occ/instm/World/getRiskNeutral">getRiskNeutral</A></H3><P>
		<CODE>- (double)<B>getRiskNeutral</B>
		</CODE><P>
		Returns the risk neutral price. It is just dividend/intrate.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- initWithBaseline:"></A><H3><A NAME="//apple_ref/occ/instm/World/initWithBaseline:">initWithBaseline:</A></H3><P>
		<CODE>- <B>initWithBaseline:</B>(double)<EM>base</EM>
			
		</CODE><P>
		No method description.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- pricetrend:"></A><H3><A NAME="//apple_ref/occ/instm/World/pricetrend:">pricetrend:</A></H3><P>
		<CODE>- (int)<B>pricetrend:</B>(int)<EM>n</EM>
			
		</CODE><P>
		Returns +1, -1, or 0 according to whether the price has risen 
monotonically, fallen monotonically, or neither, at the last 
<I>n</I> updates. Causes 
an error if nperiods is too large (see UPDOWNLOOKBACK).&quot;
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- setDividend:"></A><H3><A NAME="//apple_ref/occ/instm/World/setDividend:">setDividend:</A></H3><P>
		<CODE>- <B>setDividend:</B>(double)<EM>d</EM>
			
		</CODE><P>
		Sets the global value of &quot;dividend&quot;. All dividend changes should 
use this method. It checks for illegal changes, as does 
-setPrice:.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- setExponentialMAs:"></A><H3><A NAME="//apple_ref/occ/instm/World/setExponentialMAs:">setExponentialMAs:</A></H3><P>
		<CODE>- <B>setExponentialMAs:</B>(BOOL)<EM>aBool</EM>
			
		</CODE><P>
		Turns on the use of exponential MAs in calculations. Can be 
turned on in GUI or ASMModelSwarm.m. If not, simple averages of 
the last N periods.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- setPrice:"></A><H3><A NAME="//apple_ref/occ/instm/World/setPrice:">setPrice:</A></H3><P>
		<CODE>- <B>setPrice:</B>(double)<EM>p</EM>
			
		</CODE><P>
		Sets the market price to &quot;<I>p</I>&quot;. All price changes (besides trial 
prices) should use this method. Also computes profitperunit and 
returnratio. Checks internally for illegal changes of &quot;price&quot;, giving us the 
effective benefit of encapsulation with the simplicity of use of 
a global variable.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- setintrate:"></A><H3><A NAME="//apple_ref/occ/instm/World/setintrate:">setintrate:</A></H3><P>
		<CODE>- <B>setintrate:</B>(double)<EM>rate</EM>
			
		</CODE><P>
		Interest <I>rate</I> set in ASMModelSwarm.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- updateWorld"></A><H3><A NAME="//apple_ref/occ/instm/World/updateWorld">updateWorld</A></H3><P>
		<CODE>- <B>updateWorld</B>
		</CODE><P>
		Updates the history records, moving averages, and world bits to 
reflect the current price and dividend. Note that this is called 
in each period after a new dividend has been declared but before 
the bidding and price adjustment. The bits seen by the agents thus 
do NOT reflect the trial price. The &quot;price&quot; here becomes the 
&quot;oldprice&quot; by the end of the period. It is called once per period. 
(This could be done automatically as part of -setDividend:).<P>

The dividend used here is at present the latest value, though it 
could be argued that it should be the one before, to match price. 
For the p*r/d bits we do use the old one.
	




<P><HR>
Version 1.1 Copyright &copy;2001.  All Rights Reserved.  
<P>
</BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品短视频| 成人性生交大片免费看视频在线 | 欧美一级欧美三级在线观看| 一区二区三区影院| 欧美日韩免费在线视频| 亚洲一区av在线| 日韩欧美你懂的| 成人福利在线看| 亚洲一区二区综合| 欧美剧情片在线观看| 国产永久精品大片wwwapp| 久久看人人爽人人| 99久久综合狠狠综合久久| 亚洲韩国一区二区三区| 日韩三级精品电影久久久| 懂色av一区二区三区免费看| 亚洲欧美国产三级| 日韩一级欧美一级| 成人免费观看视频| 麻豆精品一区二区av白丝在线| 久久综合九色综合97_久久久| www.欧美精品一二区| 国产成人免费视频网站高清观看视频 | 亚洲图片欧美视频| 色噜噜偷拍精品综合在线| 日韩av高清在线观看| 国产精品三级av| 国产欧美日韩不卡| 国产精品萝li| 久久久久久久综合| 久久综合狠狠综合| 欧美国产精品一区二区三区| 成人免费在线播放视频| 亚洲精品乱码久久久久| 精品视频在线免费看| 国产 欧美在线| 国产精品中文字幕一区二区三区| 国产精品成人免费| 777a∨成人精品桃花网| 国产盗摄一区二区| 毛片av一区二区| 亚洲激情一二三区| 日本一区二区高清| 精品999在线播放| 欧美日韩精品是欧美日韩精品| 国产成人av电影在线播放| 亚洲福利电影网| 亚洲天堂福利av| 国产午夜精品久久| 亚洲精品一区在线观看| 欧美性猛交xxxxxx富婆| 欧美偷拍一区二区| 6080国产精品一区二区| 久久久久久久网| 国产精品你懂的在线| 一区二区久久久久| 国内精品免费**视频| 91在线一区二区| 色综合久久中文字幕| 欧美精品tushy高清| 精品不卡在线视频| 亚洲欧美综合在线精品| 一区二区三区日本| 国产在线一区二区综合免费视频| 懂色av中文字幕一区二区三区| 91福利国产精品| 久久久不卡影院| 午夜欧美2019年伦理| 国产成人免费视频精品含羞草妖精| 久久97超碰国产精品超碰| 91国内精品野花午夜精品| 欧美日本在线播放| 国产精品福利在线播放| 麻豆91精品91久久久的内涵| 中文字幕亚洲一区二区av在线| 5858s免费视频成人| 色综合久久久久综合| 亚洲欧美综合色| 色一情一伦一子一伦一区| 亚洲欧美在线观看| 日本久久精品电影| 日韩高清不卡一区二区| 色先锋资源久久综合| 欧美激情综合五月色丁香 | 日韩中文字幕亚洲一区二区va在线 | 91国产免费观看| 国产精品少妇自拍| 美腿丝袜亚洲一区| 欧美亚洲一区二区三区四区| 久久亚洲精精品中文字幕早川悠里 | 一本久久综合亚洲鲁鲁五月天| 欧美一区二区在线不卡| 亚洲成人资源网| 日韩一区二区不卡| 美女在线一区二区| 18欧美乱大交hd1984| 在线观看免费一区| 一级特黄大欧美久久久| 欧美日韩在线三区| 欧美aaaaa成人免费观看视频| 欧美伦理电影网| 麻豆精品国产91久久久久久| 日韩精品资源二区在线| 久久99热99| 中文字幕电影一区| 99久久婷婷国产综合精品| 亚洲精品五月天| 555夜色666亚洲国产免| 麻豆精品久久久| 亚洲欧洲www| 欧美日韩国产片| 粉嫩嫩av羞羞动漫久久久| 亚洲欧洲无码一区二区三区| 精品视频一区三区九区| 免费成人你懂的| 亚洲三级免费观看| 欧美成人女星排行榜| www.成人在线| 美女mm1313爽爽久久久蜜臀| 国产精品久久看| 欧美肥妇bbw| 91免费视频大全| 国产成人精品综合在线观看| 天堂va蜜桃一区二区三区漫画版| 中文字幕制服丝袜一区二区三区| 日韩美女视频一区二区在线观看| 在线观看一区不卡| 欧美性视频一区二区三区| 99国内精品久久| 91麻豆免费观看| 97se亚洲国产综合自在线不卡| 色综合色综合色综合色综合色综合| 夫妻av一区二区| 懂色av中文字幕一区二区三区| av电影天堂一区二区在线观看| 亚洲欧美日本韩国| 日韩欧美卡一卡二| 欧美精品 国产精品| 在线中文字幕一区| 91蜜桃在线观看| 在线免费观看日本欧美| 成人高清视频免费观看| 丁香婷婷综合色啪| 成人动漫视频在线| bt7086福利一区国产| 99精品桃花视频在线观看| eeuss鲁片一区二区三区| 3atv一区二区三区| 欧美不卡一区二区三区四区| 制服丝袜国产精品| 欧美大片日本大片免费观看| 日韩美女一区二区三区四区| 2021久久国产精品不只是精品| 日韩视频一区二区三区| 久久青草国产手机看片福利盒子| 欧美一区二区免费视频| 欧美sm极限捆绑bd| 国产精品素人一区二区| 一区二区三区四区不卡在线 | 91精品国产乱| 精品国产第一区二区三区观看体验 | 制服.丝袜.亚洲.中文.综合| 日韩女优av电影| 久久久另类综合| 亚洲精品一二三四区| 久久精品国产77777蜜臀| 国产综合色视频| 豆国产96在线|亚洲| 色综合欧美在线视频区| 精品免费99久久| 综合久久久久综合| 麻豆精品在线看| 色悠悠亚洲一区二区| 久久日一线二线三线suv| 亚洲精品午夜久久久| 国产suv精品一区二区6| 制服丝袜中文字幕亚洲| 欧美激情在线看| 毛片av一区二区| 色综合久久综合| 国产精品亲子乱子伦xxxx裸| 欧美aⅴ一区二区三区视频| 欧美亚洲精品一区| 中文字幕一区二区三区不卡在线| 日本大胆欧美人术艺术动态| 色综合天天性综合| 国产精品污污网站在线观看| 国产一区二区三区免费观看| 欧美高清激情brazzers| 国产99精品国产| 7777精品伊人久久久大香线蕉的| 亚洲精品一二三四区| 91丨九色丨蝌蚪富婆spa| 自拍偷拍亚洲欧美日韩| 色综合天天综合网天天看片| 亚洲视频一区在线观看| 色呦呦网站一区| 午夜av电影一区| 欧美一区二区三区免费视频| 美女久久久精品|