/////////////////////////////////////////////////////////////////////////////
                      IMINER SOURCE CODE GENERATOR 
/////////////////////////////////////////////////////////////////////////////

IMiner has created this project for you.  This project
contains ANSI-C code for prediction based on a model
([model] should be replaced by the model name). 

This file contains a summary of what you will find in each of the files that
make up your project.

main.c
 This is the source file containing the main function serving as an example of 
 how to call the predicting function.  

IM[model].h 
 This is the header file containing the function prototypes specific to the model.

IM[model].c
 This is the source file containing the function implementations specific to the model.

IMObjects.h
 This is the header file containing object types defined as C struct
 and function prototypes for maniputating the objects. 

IMObjects.c
 This is the source file containing the function implementations declared in IMObjects.h.

model.txt
 This is a data file containing content of the model.

InputDefinition.html
 This is an html file describing the variables used by the model and the prediction variable.


To build this project:
 
 1. Change the current directory to that containing this file. 
    cd <directory containning this file> 
 
 2. Open main.c in an editor and fill in the function IMiner_get_input_data.

 3. Compile and link with the following files:
	main.c IM[model].c IMObjects.c


/////////////////////////////////////////////////////////////////////////////
Other notes:

By default, Microsoft Windows system has all floating-point exceptions turned off. 
Therefore, computations result in NAN or INFINITY, rather than an exception. 
If you wish to trap floating-point (FP) exceptions using structured exception handling, 
you must call the _controlfp C run-time library function as follows: 

 #include <float.h>

 /* Get the default control word */
 int cw = _controlfp( 0, 0 );

 /* Set the exception masks off, turn exceptions on */
 cw &=~(EM_OVERFLOW | EM_UNDERFLOW | EM_INEXACT | EM_ZERODIVIDE | EM_DENORMAL);

 /* Set the control word */
 _controlfp( cw, MCW_EM );
/////////////////////////////////////////////////////////////////////////////

