Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Openvibe Group
extras
Commits
97981377
Commit
97981377
authored
Apr 12, 2016
by
nfoy
Browse files
fix some casting issues in logs
parent
d5914054
Changes
5
Hide whitespace changes
Inline
Side-by-side
contrib/plugins/server-extensions/tcp-tagging/ovasCPluginTCPTagging.cpp
View file @
97981377
...
...
@@ -207,8 +207,6 @@ CPluginTCPTagging::CPluginTCPTagging(const OpenViBE::Kernel::IKernelContext& rKe
:
IAcquisitionServerPlugin
(
rKernelContext
,
CString
(
"AcquisitionServer_Plugin_TCPTagging"
))
{
m_rKernelContext
.
getLogManager
()
<<
Kernel
::
LogLevel_Info
<<
"Loading plugin: TCP Tagging
\n
"
;
bool
truc
;
m_oSettingsHelper
.
add
(
"Truc"
,
&
truc
)
}
CPluginTCPTagging
::~
CPluginTCPTagging
()
...
...
plugins/processing/classification/src/algorithms/ovpCAlgorithmClassifierLDA.cpp
View file @
97981377
...
...
@@ -284,7 +284,7 @@ boolean CAlgorithmClassifierLDA::train(const IFeatureVectorSet& rFeatureVectorSe
const
MatrixXd
l_oInter
=
-
0.5
*
l_oPerClassMeans
[
i
].
transpose
()
*
l_oGlobalCovInv
*
l_oPerClassMeans
[
i
];
const
float64
l_f64Bias
=
l_oInter
(
0
,
0
)
+
std
::
log
(
l_f64ExamplesInClass
/
l_ui32TotalExamples
);
this
->
getLogManager
()
<<
LogLevel_Debug
<<
"Bias for "
<<
i
<<
" is "
<<
l_f64Bias
<<
", from "
<<
l_f64ExamplesInClass
/
l_ui32TotalExamples
this
->
getLogManager
()
<<
LogLevel_Debug
<<
"Bias for "
<<
static_cast
<
int32
>
(
i
)
<<
" is "
<<
l_f64Bias
<<
", from "
<<
l_f64ExamplesInClass
/
l_ui32TotalExamples
<<
", "
<<
l_f64ExamplesInClass
<<
"/"
<<
l_ui32TotalExamples
<<
", int="
<<
l_oInter
(
0
,
0
)
<<
"
\n
"
;
// dumpMatrix(this->getLogManager(), l_oPerClassMeans[i], "Means");
...
...
@@ -294,7 +294,7 @@ boolean CAlgorithmClassifierLDA::train(const IFeatureVectorSet& rFeatureVectorSe
}
else
{
this
->
getLogManager
()
<<
LogLevel_Debug
<<
"Class "
<<
i
<<
" has no examples
\n
"
;
this
->
getLogManager
()
<<
LogLevel_Debug
<<
"Class "
<<
static_cast
<
int32
>
(
i
)
<<
" has no examples
\n
"
;
}
}
...
...
plugins/processing/classification/src/algorithms/ovpCAlgorithmClassifierOneVsAll.cpp
View file @
97981377
...
...
@@ -148,7 +148,7 @@ boolean CAlgorithmClassifierOneVsAll::classify(const IFeatureVector& rFeatureVec
{
l_oClassificationVector
.
push_back
(
CClassifierOutput
(
static_cast
<
float64
>
(
op_f64ClassificationStateClass
),
static_cast
<
IMatrix
*>
(
op_pClassificationValues
)));
}
this
->
getLogManager
()
<<
LogLevel_Debug
<<
static_cast
<
int64
>
(
l_iClassifierCounter
)
<<
" "
<<
static_cast
<
float64
>
(
op_f64ClassificationStateClass
)
<<
" "
<<
static_cast
<
float64
>
(
*
op_pProbabilityValues
)[
0
]
<<
" "
<<
static_cast
<
float64
>
(
*
op_pProbabilityValues
)[
1
]
<<
"
\n
"
;
this
->
getLogManager
()
<<
LogLevel_Debug
<<
static_cast
<
int64
>
(
l_iClassifierCounter
)
<<
" "
<<
static_cast
<
float64
>
(
op_f64ClassificationStateClass
)
<<
" "
<<
static_cast
<
float64
>
(
(
*
op_pProbabilityValues
)[
0
]
)
<<
" "
<<
static_cast
<
float64
>
(
(
*
op_pProbabilityValues
)[
1
]
)
<<
"
\n
"
;
}
//Now, we determine the best classification
...
...
plugins/processing/classification/src/box-algorithms/ovpCBoxAlgorithmOutlierRemoval.cpp
View file @
97981377
...
...
@@ -121,7 +121,7 @@ boolean CBoxAlgorithmOutlierRemoval::pruneSet(std::vector<SFeatureVector>& l_vPr
l_vKeptIndexes
=
l_vIntersection
;
this
->
getLogManager
()
<<
LogLevel_Debug
<<
"After analyzing feat "
<<
f
<<
", kept "
<<
l_vKeptIndexes
.
size
()
<<
" examples.
\n
"
;
this
->
getLogManager
()
<<
LogLevel_Debug
<<
"After analyzing feat "
<<
static_cast
<
OpenViBE
::
uint32
>
(
f
)
<<
", kept "
<<
static_cast
<
OpenViBE
::
int32
>
(
l_vKeptIndexes
.
size
()
)
<<
" examples.
\n
"
;
}
...
...
plugins/processing/simple-visualisation/src/box-algorithms/ovpCGrazVisualization.cpp
View file @
97981377
...
...
@@ -80,7 +80,6 @@ public:
timeb
time_buffer
;
ftime
(
&
time_buffer
);
const
uint64
posixTime
=
time_buffer
.
time
*
1000ULL
+
time_buffer
.
millitm
;
if
(
!
m_oStimulusSocket
.
is_open
())
{
...
...
@@ -93,7 +92,6 @@ public:
{
boost
::
asio
::
write
(
m_oStimulusSocket
,
boost
::
asio
::
buffer
((
void
*
)
&
l_ui64tmp
,
sizeof
(
uint64
)));
boost
::
asio
::
write
(
m_oStimulusSocket
,
boost
::
asio
::
buffer
((
void
*
)
&
ui64Stimuli
,
sizeof
(
uint64
)));
//boost::asio::write(m_oStimulusSocket, boost::asio::buffer((void *)&posixTime, sizeof(uint64)));
boost
::
asio
::
write
(
m_oStimulusSocket
,
boost
::
asio
::
buffer
((
void
*
)
&
l_ui64tmp
,
sizeof
(
uint64
)));
}
catch
(
boost
::
system
::
system_error
l_oError
)
...
...
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