SMILE Tutorials Code: Main Program
From DSL
Here are the listings for all the tutorials. For them to be compiled, we first show a main program that uses them. To use the library, the only file you need to include is "smile.h". You will also need to tell your linker where to find "Smile.lib".
#include "smile.h"
void CreateNetwork(void);
void InfereceWithBayesNet(void);
void UpgradeToInfluenceDiagram(void);
void InferenceWithInfluenceDiagram(void);
void ComputeValueOfInformation(void);
int main()
{
CreateNetwork();
InfereceWithBayesNet();
UpgradeToInfluenceDiagram();
InferenceWithInfluenceDiagram();
ComputeValueOfInformation();
return(DSL_OKAY);
};