Using stats++

From stats++ wiki
Jump to: navigation, search


Including

stats++ is a header-only library — i.e., its functionality can be accessed by including the appropriate include file.

Namespaces

Namespaces are important in stats++, to provide ease of use and to prevent conflicting subroutine definitions.

All functionality of stats++ is contained in the top-level namespace:

namespace statsxx
{
}

Bottom-level namespaces separate the main packages of stats++:

namespace statsxx
{
    namespace data
    {
    }
    namespace machine_learning
    {
    }
}

As an example, restricted Boltzmann machines are declared as follows:

namespace statsxx
{
    namespace machine_learning
    {
        class RBM
        {
        };
    }
}