SetDataProc

 

Accueil  Précédent  Suivant

 

 

 

C/C++ declaration

extern int __stdcall SetDataProc(long Handle, void * Func, TDataModifStyle Style);

typedef enum{ //Pour la fonction SetDataProc

  nds_Modify,      // Fonction de type TModifyDataFunc

  nds_Translate    // Fonction de type TTranslateDataFunc

  } TDataModifStyle;

 

Pascal declaration

function SetDataProc(Handle: LongInt; Func: Pointer; Style: TDataModifStyle): Integer;

TDataModifStyle = ( //Pour la fonction SetDataProc

  nds_Modify,      // Fonction de type TModifyDataFunc

  nds_Translate    // Fonction de type TTranslateDataFunc

  );

 

Definition of a new data pre processing function.

 

IN                 Handle : Model handle.

IN         Func: pointer to the function. Two function types are allowed : TTranslateDataFunc and TModifyDataFunc.

IN         Style : TDataModifStyle

Return : 0 si OK, -1 if invalid handle, 1 if model has no training capability

 

 

Remark :

The type TTranslateDataFunc allows a pre processing of the line read in a csv like text file. This function must perform the data translation towards the "Target" vector.

The type TModifyDataFunc allows a pre processing of the real values vector just before its storing in the memory.

To remove one of the functions, call the procedure with a null parameter.

 

TDataFunc

Primitives


NETRAL Neuro Developer Kit version 7.0