请达人把下面的c的结构体转为delphi(pascal)
typedefstructnode_{intm_featureNr;//decisiononthisfeatureREALm_value;//thepredictionv...
typedef struct node_
{
int m_featureNr; // decision on this feature
REAL m_value; // the prediction value
struct node_* m_toSmallerEqual; // pointer to node, if: feature[m_featureNr] <= m_value
struct node_* m_toLarger; // pointer to node, if: feature[m_featureNr] > m_value
int* m_trainSamples; // a list of indices of the training samples in this node
int m_nSamples; // the length of m_trainSamples
} node; 展开
{
int m_featureNr; // decision on this feature
REAL m_value; // the prediction value
struct node_* m_toSmallerEqual; // pointer to node, if: feature[m_featureNr] <= m_value
struct node_* m_toLarger; // pointer to node, if: feature[m_featureNr] > m_value
int* m_trainSamples; // a list of indices of the training samples in this node
int m_nSamples; // the length of m_trainSamples
} node; 展开
展开全部
type
pointer=^struct;
struct=record
m_featureNr:integer; {ecision on this feature}
m_value:real; { the prediction value}
m_toSmallerEqual:pointer ; { pointer to node, if: feature[m_featureNr] <= m_value}
m_toLarger:pointer ; {pointer to node, if: feature[m_featureNr] > m_value}
m_trainSamples:^integer; {a list of indices of the training samples in this node}
m_nSamples:integer; { the length of m_trainSamples}
end;
var
node:struct;
pointer=^struct;
struct=record
m_featureNr:integer; {ecision on this feature}
m_value:real; { the prediction value}
m_toSmallerEqual:pointer ; { pointer to node, if: feature[m_featureNr] <= m_value}
m_toLarger:pointer ; {pointer to node, if: feature[m_featureNr] > m_value}
m_trainSamples:^integer; {a list of indices of the training samples in this node}
m_nSamples:integer; { the length of m_trainSamples}
end;
var
node:struct;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询