Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
extras
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
The Openvibe Group
extras
Commits
3a74216a
Commit
3a74216a
authored
5 years ago
by
MONSEIGNE Thibaut
Browse files
Options
Downloads
Patches
Plain Diff
Boxes: Bar Scale Optimisation
parent
8b6317e8
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!33
tmonseigne generalized graz visualization
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/processing/simple-visualization/src/box-algorithms/ovpCGrazMultiVisualization.cpp
+4
-1
4 additions, 1 deletion
...ization/src/box-algorithms/ovpCGrazMultiVisualization.cpp
with
4 additions
and
1 deletion
plugins/processing/simple-visualization/src/box-algorithms/ovpCGrazMultiVisualization.cpp
+
4
−
1
View file @
3a74216a
...
...
@@ -383,9 +383,12 @@ void CGrazMultiVisualization::aggregatePredictions(const bool all)
}
for
(
const
auto
&
a
:
amp
)
{
sum
+=
a
;
}
// Computes bar scale for each modality as a probability (other possibility substract the min/max value or the mean of the values)
// Then we put this probability between 0-1 to 0-1 but when 0 is equal to 1/m_nbModality
const
double
minV
=
1.0
/
m_nbModality
,
factorV
=
1.0
/
(
1
-
minV
);
for
(
size_t
i
=
0
;
i
<
amp
.
size
();
++
i
)
{
m_barScales
[
i
]
=
amp
[
i
]
/
sum
;
m_barScales
[
i
]
=
(
amp
[
i
]
/
sum
-
minV
)
*
factorV
;
if
(
amp
[
m_vote
]
<
amp
[
i
])
{
m_vote
=
i
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment