Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aGrUM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
agrumery
aGrUM
Commits
6850bccd
Commit
6850bccd
authored
Mar 26, 2018
by
Pierre-Henri Wuillemin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[aGrUM] guidelines
parent
b03c117f
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
genericBNLearner_inl.h
src/agrum/learning/BNLearnUtils/genericBNLearner_inl.h
+1
-1
labelizedVariable_inl.h
src/agrum/variables/labelizedVariable_inl.h
+4
-4
No files found.
src/agrum/learning/BNLearnUtils/genericBNLearner_inl.h
View file @
6850bccd
...
@@ -57,7 +57,7 @@ namespace gum {
...
@@ -57,7 +57,7 @@ namespace gum {
genericBNLearner
::
Database
::
idFromName
(
const
std
::
string
&
var_name
)
const
{
genericBNLearner
::
Database
::
idFromName
(
const
std
::
string
&
var_name
)
const
{
try
{
try
{
return
__name2nodeId
.
second
(
const_cast
<
std
::
string
&
>
(
var_name
));
return
__name2nodeId
.
second
(
const_cast
<
std
::
string
&
>
(
var_name
));
}
catch
(
gum
::
NotFound
&
)
{
}
catch
(
gum
::
NotFound
&
)
{
GUM_ERROR
(
MissingVariableInDatabase
,
"for variable "
<<
var_name
);
GUM_ERROR
(
MissingVariableInDatabase
,
"for variable "
<<
var_name
);
}
}
}
}
...
...
src/agrum/variables/labelizedVariable_inl.h
View file @
6850bccd
...
@@ -83,10 +83,10 @@ namespace gum {
...
@@ -83,10 +83,10 @@ namespace gum {
addLabel
(
oss
.
str
());
addLabel
(
oss
.
str
());
}
}
}
}
INLINE
LabelizedVariable
::
LabelizedVariable
(
INLINE
const
std
::
string
&
aName
,
LabelizedVariable
::
LabelizedVariable
(
const
std
::
string
&
aName
,
const
std
::
string
&
aDesc
,
const
std
::
string
&
aDesc
,
const
std
::
vector
<
std
::
string
>&
labels
)
const
std
::
vector
<
std
::
string
>&
labels
)
:
DiscreteVariable
(
aName
,
aDesc
)
{
:
DiscreteVariable
(
aName
,
aDesc
)
{
// for debugging purposes
// for debugging purposes
GUM_CONSTRUCTOR
(
LabelizedVariable
);
GUM_CONSTRUCTOR
(
LabelizedVariable
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment