XMM - Probabilistic Models for Motion Recognition and Mapping

xmmModelParameters.hpp
Go to the documentation of this file.
1 /*
2  * xmmModelParameters.hpp
3  *
4  * Model Parameters for each class (label)
5  *
6  * Contact:
7  * - Jules Francoise <jules.francoise@ircam.fr>
8  *
9  * This code has been initially authored by Jules Francoise
10  * <http://julesfrancoise.com> during his PhD thesis, supervised by Frederic
11  * Bevilacqua <href="http://frederic-bevilacqua.net>, in the Sound Music
12  * Movement Interaction team <http://ismm.ircam.fr> of the
13  * STMS Lab - IRCAM, CNRS, UPMC (2011-2015).
14  *
15  * Copyright (C) 2015 UPMC, Ircam-Centre Pompidou.
16  *
17  * This File is part of XMM.
18  *
19  * XMM is free software: you can redistribute it and/or modify
20  * it under the terms of the GNU General Public License as published by
21  * the Free Software Foundation, either version 3 of the License, or
22  * (at your option) any later version.
23  *
24  * XMM is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with XMM. If not, see <http://www.gnu.org/licenses/>.
31  */
32 
33 #ifndef xmmModelParameters_h
34 #define xmmModelParameters_h
35 
36 #include "../common/xmmAttribute.hpp"
37 #include "../common/xmmJson.hpp"
38 
39 namespace xmm {
47 template <typename ModelType>
48 class ClassParameters : public Writable {
49  public:
53  ClassParameters() : changed(true) {}
54 
59  ClassParameters(ClassParameters const& src) : changed(true) {}
60 
65  explicit ClassParameters(Json::Value const& root) : changed(true) {}
66 
72 
76  bool changed;
77 };
78 }
79 
80 #endif
bool changed
specifies if parameters have changed (model is invalid)
Definition: xmmModelParameters.hpp:76
ClassParameters(ClassParameters const &src)
Copy Constructor.
Definition: xmmModelParameters.hpp:59
ClassParameters & operator=(ClassParameters const &src)
Assignment.
Definition: xmmModelParameters.hpp:71
Abstract class for handling JSON + File I/O.
Definition: xmmJson.hpp:50
ClassParameters()
Default Constructor.
Definition: xmmModelParameters.hpp:53
Definition: xmmAttribute.hpp:42
Class-specific Model Parameters.
Definition: xmmModelParameters.hpp:48
ClassParameters(Json::Value const &root)
Constructor from Json Structure.
Definition: xmmModelParameters.hpp:65