⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bfcast.html

📁 主要是介绍人工模拟股票市场的
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<HTML><HEAD><TITLE></TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF">


<BR><BR><FONT COLOR="#000066"><H1><A NAME="//apple_ref/occ/cl/BFCast">BFCast</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>BFCast.h</DD>
	</DL></blockquote>

<BR><BR>


<H2>Class Description</H2>
A BFCast is an object that holds all the forcecasting components of 
a bit forecast. That means it has a BitVector (a thing called 
&quot;conditions&quot; in the code that keeps track of which world bits are 
being monitored) as well as other coefficients that are used to 
calculate forecasts. It has instance variables that record when the 
rule was last used, how many times it has been used, how accururate 
its predictions are, and so forth.

















	<P><HR WIDTH=50% ALIGN=LEFT>
	<H2>Instance Variables</H2>
	<blockquote>
	
		<CODE>double <B>forecast</B>;</CODE><BR>
		<CODE>double <B>lforecast</B>;</CODE><BR>
		<CODE>double <B>variance</B>;</CODE><BR>
		<CODE>double <B>strength</B>;</CODE><BR>
		<CODE>double <B>a</B>;</CODE><BR>
		<CODE>double <B>b</B>;</CODE><BR>
		<CODE>double <B>c</B>;</CODE><BR>
		<CODE>double <B>specfactor</B>;</CODE><BR>
		<CODE>double <B>bitcost</B>;</CODE><BR>
		<CODE>BitVector *<B>conditions</B>;</CODE><BR>
		<CODE>int <B>lastactive</B>;</CODE><BR>
		<CODE>int <B>specificity</B>;</CODE><BR>
		<CODE>int <B>count</B>;</CODE><BR>
		<CODE>int <B>condwords</B>;</CODE><BR>
		<CODE>int <B>condbits</B>;</CODE><BR>
		<CODE>int <B>nnulls</B>;</CODE><BR>
	<P><TABLE>
	
		<TR><TD>forecast</TD><TD>this forecast of return</TD></TR>
	
		<TR><TD>lforecast</TD><TD>previous forecast</TD></TR>
	
		<TR><TD>variance</TD><TD>variance of this forecast</TD></TR>
	
		<TR><TD>strength</TD><TD>strength=maxdev - variance +specfactor. This was the original sfsm specification, not the ASM-2.0 specification</TD></TR>
	
		<TR><TD>a</TD><TD>(price + dividend) coefficient</TD></TR>
	
		<TR><TD>b</TD><TD>dividend coefficient</TD></TR>
	
		<TR><TD>c</TD><TD>constant term</TD></TR>
	
		<TR><TD>specfactor</TD><TD>specificty=(condbits - nnulls - specificity)* bitcost.</TD></TR>
	
		<TR><TD>bitcost</TD><TD>cost of using bits in forecasts</TD></TR>
	
		<TR><TD>conditions</TD><TD>a BitVector object that holds records on which conditions in the world are being monitored by this forecast object</TD></TR>
	
		<TR><TD>lastactive</TD><TD>last time period in which this forecast was active</TD></TR>
	
		<TR><TD>specificity</TD><TD>specificity</TD></TR>
	
		<TR><TD>count</TD><TD>number of times this forecast has been active</TD></TR>
	
		<TR><TD>condwords</TD><TD>number of words of memory needed to hold the conditions</TD></TR>
	
		<TR><TD>condbits</TD><TD>number of bits of information monitored by this forecast</TD></TR>
	
		<TR><TD>nnulls</TD><TD>number of 'unused' bits that remain in the allocated vector after the 'condbits' bits have been used</TD></TR>
	
	</TABLE>
	</blockquote>




	<P><HR WIDTH=50% ALIGN=LEFT>
	<H2>Method Types</H2>
	<blockquote>
	
		
		<DL><DT></DT>
		
			<DD> <A HREF="#- createEnd">- createEnd</A></DD>
		
			<DD> <A HREF="#- incrSpecificity">- incrSpecificity</A></DD>
		
			<DD> <A HREF="#- decrSpecificity">- decrSpecificity</A></DD>
		
			<DD> <A HREF="#- setSpecificity:">- setSpecificity:</A></DD>
		
			<DD> <A HREF="#- getSpecificity">- getSpecificity</A></DD>
		
			<DD> <A HREF="#- setConditions:">- setConditions:</A></DD>
		
			<DD> <A HREF="#- getConditions">- getConditions</A></DD>
		
			<DD> <A HREF="#- getConditionsObject">- getConditionsObject</A></DD>
		
			<DD> <A HREF="#- setNNulls:">- setNNulls:</A></DD>
		
			<DD> <A HREF="#- setBitcost:">- setBitcost:</A></DD>
		
			<DD> <A HREF="#- setConditionsWord:To:">- setConditionsWord:To:</A></DD>
		
			<DD> <A HREF="#- getConditionsWord:">- getConditionsWord:</A></DD>
		
			<DD> <A HREF="#- setConditionsbit:To:">- setConditionsbit:To:</A></DD>
		
			<DD> <A HREF="#- setConditionsbit:FromZeroTo:">- setConditionsbit:FromZeroTo:</A></DD>
		
			<DD> <A HREF="#- maskConditionsbit:">- maskConditionsbit:</A></DD>
		
			<DD> <A HREF="#- switchConditionsbit:">- switchConditionsbit:</A></DD>
		
			<DD> <A HREF="#- getConditionsbit:">- getConditionsbit:</A></DD>
		
			<DD> <A HREF="#- setAval:">- setAval:</A></DD>
		
			<DD> <A HREF="#- setBval:">- setBval:</A></DD>
		
			<DD> <A HREF="#- setCval:">- setCval:</A></DD>
		
			<DD> <A HREF="#- getAval">- getAval</A></DD>
		
			<DD> <A HREF="#- getBval">- getBval</A></DD>
		
			<DD> <A HREF="#- getCval">- getCval</A></DD>
		
			<DD> <A HREF="#- updateSpecfactor">- updateSpecfactor</A></DD>
		
			<DD> <A HREF="#- setSpecfactor:">- setSpecfactor:</A></DD>
		
			<DD> <A HREF="#- getSpecfactor">- getSpecfactor</A></DD>
		
			<DD> <A HREF="#- setVariance:">- setVariance:</A></DD>
		
			<DD> <A HREF="#- getVariance">- getVariance</A></DD>
		
			<DD> <A HREF="#- setCondwords:">- setCondwords:</A></DD>
		
			<DD> <A HREF="#- setCondbits:">- setCondbits:</A></DD>
		
			<DD> <A HREF="#- setForecast:">- setForecast:</A></DD>
		
			<DD> <A HREF="#- getForecast">- getForecast</A></DD>
		
			<DD> <A HREF="#- updateForecastPrice:Dividend:">- updateForecastPrice:Dividend:</A></DD>
		
			<DD> <A HREF="#- setLforecast:">- setLforecast:</A></DD>
		
			<DD> <A HREF="#- getLforecast">- getLforecast</A></DD>
		
			<DD> <A HREF="#- setLastactive:">- setLastactive:</A></DD>
		
			<DD> <A HREF="#- getLastactive">- getLastactive</A></DD>
		
			<DD> <A HREF="#- setCnt:">- setCnt:</A></DD>
		
			<DD> <A HREF="#- getCnt">- getCnt</A></DD>
		
			<DD> <A HREF="#- incrCount">- incrCount</A></DD>
		
			<DD> <A HREF="#- setStrength:">- setStrength:</A></DD>
		
			<DD> <A HREF="#- getStrength">- getStrength</A></DD>
		
			<DD> <A HREF="#- copyEverythingFrom:">- copyEverythingFrom:</A></DD>
		
			<DD> <A HREF="#- print">- print</A></DD>
		
			<DD> <A HREF="#- printcond:">- printcond:</A></DD>
		
			<DD> <A HREF="#- drop">- drop</A></DD>
		
		</DL>
	
	</blockquote>




 

	<HR WIDTH=50% ALIGN=LEFT>
	<H2>Instance Methods</H2>
 
	
		
		<A NAME="- copyEverythingFrom:"></A><H3><A NAME="//apple_ref/occ/instm/BFCast/copyEverythingFrom:">copyEverythingFrom:</A></H3><P>
		<CODE>- <B>copyEverythingFrom:</B>(BFCast *)<EM>from</EM>
			
		</CODE><P>
		Given an input forecast object, systematically ask it for 
all its IVARs and replace current settings with them.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- createEnd"></A><H3><A NAME="//apple_ref/occ/instm/BFCast/createEnd">createEnd</A></H3><P>
		<CODE>- <B>createEnd</B>
		</CODE><P>
		No method description.
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- decrSpecificity"></A><H3><A NAME="//apple_ref/occ/instm/BFCast/decrSpecificity">decrSpecificity</A></H3><P>
		<CODE>- (void)<B>decrSpecificity</B>
		</CODE><P>
		Reduce the specificity value of this forecast by one unit
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- drop"></A><H3><A NAME="//apple_ref/occ/instm/BFCast/drop">drop</A></H3><P>
		<CODE>- (void)<B>drop</B>
		</CODE><P>
		Free dynamically allocated memory
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- getAval"></A><H3><A NAME="//apple_ref/occ/instm/BFCast/getAval">getAval</A></H3><P>
		<CODE>- (double)<B>getAval</B>
		</CODE><P>
		Return a coefficient from demand equation
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- getBval"></A><H3><A NAME="//apple_ref/occ/instm/BFCast/getBval">getBval</A></H3><P>
		<CODE>- (double)<B>getBval</B>
		</CODE><P>
		Return b coefficient from demand equation
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- getCnt"></A><H3><A NAME="//apple_ref/occ/instm/BFCast/getCnt">getCnt</A></H3><P>
		<CODE>- (int)<B>getCnt</B>
		</CODE><P>
		Return the value of count
	
		<P><HR WIDTH=25% ALIGN=LEFT>
		<A NAME="- getConditions"></A><H3><A NAME="//apple_ref/occ/instm/BFCast/getConditions">getConditions</A></H3><P>
		<CODE>- (int *)<B>getConditions</B>
		</CODE><P>
		Returns a pointer to an array, the integer representation of the 
conditions
	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -