tutorial - help sample
Bayes Server is a .NET library for Bayesian networks and Dynamic Bayesian networks.
This tutorial shows the steps required to compile and run one of the help samples.
step 1 - download and install Bayes Server
If you have not already installed Bayes Server,
click here and follow instructions to download and then install Bayes Server.
step 2 - development environment
To use the Bayes Server libraries, a software development environment is required.
Microsoft provides free software that can be used if required, such as Microsoft
C# Express 2008, Microsoft VB.NET Express 2008, and Microsoft VC++ Express 2008.
Many other languages also support the .NET framework and are therefore capable of
using Bayes Server. For the purposes of this tutorial we will use Microsoft C# Express
2008.
step 3 - create a new project
- Open the development environment (Microsoft C# Express 2008).
- Click File->New Project...
- Select Console Application
- Call your new project BayesServerDemo
- Click OK
step 4 - add references to Bayes Server
- Open Solution explorer and expand your new project.
- Right click on the references folder and click 'Add Reference...'
- Click the Browse Tab and navigate to the installation directory for Bayes Server.
If you installed Bayes Server
to the default location this is 'C:\Program Files\Bayes Server\Bayes Server
2.2\'.
- Select BayesServer.dll and BayesServer.Inference.dll, and click OK.
- Please note that although BayesServer.Internal.dll is required to run the libraries
we do not need to directly reference it, as we will never call it directly and it
will be indirectly referenced automatically.

step 5 - copy sample code from Bayes Server help
- Open the help file BayesServer.chm. If you installed Bayes Server
to the default location this can be found in 'C:\Program Files\Bayes Server\Bayes
Server 2.2\'.
- Naviagte to the network class, and copy the source code from the first sample.
- Open Program.cs in your new console project and paste the source code into the file,
replacing the existing code.
Now Program.cs should look something like this:

step 6 - run the project
You are now ready to run the project. From the Debug menu either click Start
Debugging (F5) or Start Without Debugging (Ctrl+F5).
Your output should look similar to this.