dividend.h

来自「人工智能的matlab程序」· C头文件 代码 · 共 47 行

H
47
字号
// The Santa Fe Stockmarket -- Interface for the dividend process

#import <objectbase/SwarmObject.h>

@interface Dividend: SwarmObject
{
 
  double baseline; /*"The centerline around which deviations are computed.
		     //			This is equal to the mean for a symmetric process
		     //			(i.e., if asymmetry = 0).  "baseline" is set only
		     //			from the parameter file, and should NOT normally
		     //			be changed from the default value (10.0)."*/
  //

  double amplitude; /*"The amplitude of the deviations from the baseline.
		      //			Measured in units of "baseline".  The standard
		      //			deviation of the process is proportional to this."*/

  int period;  /*"The period or auto-correlation time of the process."*/

  double mindividend;  /*"floor under dividend values"*/
  double maxdividend; /*"ceiling for dividend values"*/
  double deviation;
  double rho;
  double gauss;
  double dvdnd;
  id normal; /*"A Swarm Normal Generator object"*/
}

- initNormal;

 //These member functions just take parameters set in the 
- setBaseline: (double)theBaseline;
- setmindividend: (double)minimumDividend;
- setmaxdividend: (double)maximumDividend;
- (double)setAmplitude: (double)theAmplitude;
- (int)setPeriod: (int)thePeriod;
- setDerivedParams;

- (double)dividend;

@end




⌨️ 快捷键说明

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