ReadRndForestHeader

Declaration: ReadRndForestHeader (FName, Pwd: string; var CreationDate: TDateTime; var Author, Caption, Comment: string; var ClassList: TSTringList): integer;
The function ReadRndForestHeader reads the random forest classifier specified by the filename FName. For encrypted classifiers the parameter Pwd has to contain the password, otherwise it is ignored. The variable parameters CreationDate, Author, Caption and Comment return the respective informations. The parameter ClassList returns the list of supported classes.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the specified file does not exist or cannot be read
-2 ... the specified file is not an RF classifier
-3 ... the classifier file cannot be decrypted