Commit 97981377 authored by nfoy's avatar nfoy
Browse files

fix some casting issues in logs

parent d5914054
......@@ -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()
......
......@@ -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";
}
}
......
......@@ -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
......
......@@ -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";
}
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment