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

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

?? world.html

?? 人工股市(Artificial Stock Market
?? 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| 亚洲乱码国产乱码精品精小说| 国产精品久久久久国产精品日日| 精品国产亚洲一区二区三区在线观看| 日韩一区二区三区四区| 久久久久久久网| 极品尤物av久久免费看| 六月婷婷色综合| 韩国av一区二区三区| 99久久精品国产毛片| 欧美视频一区二区| 久久久影院官网| 成人欧美一区二区三区白人| 亚洲一区二区五区| 久久国产麻豆精品| 色婷婷综合久久久久中文一区二区| 色欧美片视频在线观看在线视频| 91精品国产综合久久福利软件| 久久综合狠狠综合久久激情| 亚洲精品写真福利| 狠狠色丁香婷婷综合久久片| 色哟哟精品一区| 久久精品网站免费观看| 日韩中文字幕麻豆| 一本到三区不卡视频| 国产欧美在线观看一区| 丝袜美腿亚洲综合| 欧美亚洲日本一区| 国产欧美精品国产国产专区| 日韩主播视频在线| 在线视频欧美区| 亚洲免费av观看| 国产69精品久久99不卡| 精品国产伦一区二区三区观看方式| 亚洲最快最全在线视频| 99re成人在线| 亚洲精品日产精品乱码不卡| 国产98色在线|日韩| 国产欧美精品国产国产专区| 欧美无砖砖区免费| 午夜视频在线观看一区| 欧美日韩免费不卡视频一区二区三区| 亚洲精品免费在线观看| 97se亚洲国产综合自在线观| 亚洲人成小说网站色在线| 成人动漫中文字幕| 亚洲精品乱码久久久久久| 欧美性生交片4| 久久99国产精品麻豆| 欧美成人性战久久| proumb性欧美在线观看| 亚洲成人一区二区| 久久新电视剧免费观看| 7777精品伊人久久久大香线蕉| 国产成人精品一区二区三区网站观看| 精品亚洲aⅴ乱码一区二区三区| 26uuu国产在线精品一区二区| 麻豆精品国产传媒mv男同| 久久人人爽爽爽人久久久| eeuss国产一区二区三区| 亚洲成av人片一区二区| 久久久www成人免费无遮挡大片| 国产成人av电影| 日日夜夜精品免费视频| 国产视频亚洲色图| 91精品国产综合久久久蜜臀粉嫩 | 中文字幕一区三区| 亚洲精品一区二区三区在线观看 | 综合网在线视频| 精品国产伦理网| 3d动漫精品啪啪1区2区免费| 成人a免费在线看| 精品一区二区在线看| 亚洲午夜久久久久久久久久久 | 成人美女在线视频| 青娱乐精品视频在线| 一区二区三区影院| 国产精品久久久久影院老司 | 国内精品久久久久影院色| 一区二区三国产精华液| 亚洲午夜在线电影| 欧美一区二区国产| 欧美一区日本一区韩国一区| 日本精品裸体写真集在线观看| 国产精品国产自产拍在线| 国产a级毛片一区| 日本视频一区二区| 蜜臀va亚洲va欧美va天堂| 日韩和的一区二区| 精品一区二区三区在线播放 | 日本一道高清亚洲日美韩| 亚洲最大色网站| 午夜久久久久久久久久一区二区| 亚洲靠逼com| 日韩综合在线视频| 久久国内精品自在自线400部| 久久99久久久久久久久久久| 欧美在线高清视频| 99re这里只有精品首页| 欧美三级欧美一级| 久久久久久久久久美女| 亚洲免费伊人电影| 美腿丝袜亚洲色图| av中文一区二区三区| 欧美精品久久久久久久多人混战| 欧美一级一区二区| 国产精品狼人久久影院观看方式| 亚洲欧美一区二区不卡| 麻豆91精品91久久久的内涵| 国产成人av电影在线播放| 欧美色区777第一页| 久久久亚洲午夜电影| 亚洲国产你懂的| 风间由美性色一区二区三区| 91精品国产一区二区人妖| 成人手机电影网| 欧美日韩日本视频| 亚洲激情图片qvod| 欧美美女一区二区在线观看| 国产嫩草影院久久久久| 免费在线观看成人| 欧美日韩国产a| 亚洲成a人片在线不卡一二三区| 成人黄色在线视频| 国产亚洲美州欧州综合国| 麻豆免费看一区二区三区| 欧美日本一区二区三区| 亚洲一区成人在线| 欧美性三三影院| 香蕉乱码成人久久天堂爱免费| 99久久综合国产精品| 日韩理论电影院| 欧美日韩免费不卡视频一区二区三区| 亚洲四区在线观看| 色av成人天堂桃色av| 国产ts人妖一区二区| 国产女主播一区| 欧美在线观看18| 久久精品久久精品| 中文字幕免费在线观看视频一区| 成人自拍视频在线观看| 亚洲色图欧美激情| 欧美精品久久一区| 国产精品1区2区| 一区二区三区四区av| 精品国产精品网麻豆系列| 成人性生交大片免费看中文| 一区二区三区中文在线观看| 欧美精品乱码久久久久久| 欧美a级一区二区| 亚洲女同ⅹxx女同tv| 欧美变态tickling挠脚心| 99在线精品免费| 久久激五月天综合精品| 亚洲在线视频网站| 国产色综合久久| 欧美大片一区二区| 欧美三级三级三级爽爽爽| 成人一道本在线| 免费观看30秒视频久久| 亚洲男同1069视频| 国产精品色哟哟| 欧美一区二区在线免费观看| 欧美亚洲日本一区| 国产精品 欧美精品| 全部av―极品视觉盛宴亚洲| 夜夜嗨av一区二区三区网页 | 亚洲福中文字幕伊人影院| ww亚洲ww在线观看国产| 99精品欧美一区二区三区小说 | 欧美α欧美αv大片| 欧美亚洲一区二区在线观看| 91免费国产在线| 99久久精品免费观看| 成人av网站在线观看| jlzzjlzz亚洲女人18| 国产a久久麻豆| 久久麻豆一区二区| 欧美性感一区二区三区| 国产精品综合视频| 国产麻豆成人传媒免费观看| 久久精品国产亚洲一区二区三区| 亚洲www啪成人一区二区麻豆| 亚洲精品第1页| 日本vs亚洲vs韩国一区三区| 日韩精品一卡二卡三卡四卡无卡| 日韩成人免费电影| 韩国精品久久久| 成人免费视频播放| 欧美日韩一级大片网址| 欧美一区二区三区婷婷月色| 欧美精品一区二区三区高清aⅴ| 欧美成人猛片aaaaaaa| 亚洲天堂福利av| 国产一区二区剧情av在线|