下面代码转为pascal

[复制链接]
查看11 | 回复2 | 2010-5-24 21:53:01 | 显示全部楼层 |阅读模式
/*--------------------------------------------------------------
*
*OUTLINE:
*
*
This module implements a AdaBoostMH procedure for WSD.
*
*IMPLEMENTATION:
*
*NOTES:
*
*--------------------------------------------------------------*/
#define USE_OPERATEFILE
#define USE_AdaBoostMH
#include "AdaBoostMH.h"
USEWINASSERT
/*--- Useful type defines for train class object ---*/
#define PADTRAINMATRIX double *
#define PADTRAINWEIGHT double *
#define PANSENSES int *
#define PANTRAINS int *
#define PANTESTS int *
#define PANEXAMPLES int *
#define PANFEATURES int *
#define NUMEXAMPLE
int
#define EXAMPLEint
#define FEATUREint
#define DZMINdouble
#define FIXVALUE double
/*--- Useful struct defines for train class object ---*/
typedef struct _trainExample {
EXAMPLE example;//example
struct _trainExample *next;
} *PTRAINEXAMPLE;
typedef struct _trainWR {
DZMINz; //Zmin
FEATUREfeature;//
PADTRAINWEIGHT weights[2]; //
struct _trainWR *next;
} *PTRAINWR;

回复

使用道具 举报

千问 | 2010-5-24 21:53:01 | 显示全部楼层
(*-------------------------------------------------------------- * *OUTLINE: * *
This module implements a AdaBoostMH procedure for WSD. * *IMPLEMENTATION: * *NOTES: * *--------------------------------------------------------------*)(*#define USE_OPERATEFILE#define USE_AdaBoostMH#include "Ad
回复

使用道具 举报

千问 | 2010-5-24 21:53:01 | 显示全部楼层
program outpu;beginwrite('/*-------------------------------------------------------------- * *OUTLINE: * *
This module implements a AdaBoostMH procedure for WSD.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行