Shark machine learning library
About Shark
News!
Contribute
Credits and copyright
Downloads
Getting Started
Installation
Using the docs
Documentation
Tutorials
Quick references
Class list
Global functions
FAQ
Showroom
include
shark
Unsupervised
RBM
Tags.h
Go to the documentation of this file.
1
/*!
2
*
3
*
4
* \brief -
5
*
6
* \author -
7
* \date -
8
*
9
*
10
* \par Copyright 1995-2017 Shark Development Team
11
*
12
* <BR><HR>
13
* This file is part of Shark.
14
* <http://shark-ml.org/>
15
*
16
* Shark is free software: you can redistribute it and/or modify
17
* it under the terms of the GNU Lesser General Public License as published
18
* by the Free Software Foundation, either version 3 of the License, or
19
* (at your option) any later version.
20
*
21
* Shark is distributed in the hope that it will be useful,
22
* but WITHOUT ANY WARRANTY; without even the implied warranty of
23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
* GNU Lesser General Public License for more details.
25
*
26
* You should have received a copy of the GNU Lesser General Public License
27
* along with Shark. If not, see <http://www.gnu.org/licenses/>.
28
*
29
*/
30
#ifndef SHARK_UNSUPERVISED_RBM_TAGS_H
31
#define SHARK_UNSUPERVISED_RBM_TAGS_H
32
33
#include <
shark/Core/Flags.h
>
34
35
namespace
shark
{
36
///\brief Tags are empty types which can be used as a function argument.
37
///
38
///A Tag enables the compiler to automatically choose the correct version of the function based on the tag.
39
///This is usefull to circumvent writing if-else cascades in multiple functions. Also it prevents the instantiation of unneeded code.
40
///It also enables the use of compile time errors when certain combination of tags must be prevented.
41
///This happens for example in the exact computation of the partition fucntion, which can't be evaluated for two real enumeration spaces.
42
///usage function(argument,SomeType::tag());
43
///for a function defined as T function(U,tag_type);
44
namespace
tags{
45
///\brief A Tag for EnumerationSpaces. It tells the Functions, that the space is discrete and can be enumerated.
46
///
47
///It does not tell, however, whether it is computationally feasible.
48
struct
DiscreteSpace
{};
49
///\brief A Tag for EnumerationSpaces. It tells the Functions, that the space is real and can't be enumerated.
50
struct
RealSpace
{};
51
}
52
53
}
54
55
#endif