Commit 05353a14 authored by Marina Noskova's avatar Marina Noskova

Removed trailing whitespaces

parent 41c0a383
...@@ -140,7 +140,7 @@ private: ...@@ -140,7 +140,7 @@ private:
}; };
Ptr<SVMSGD> SVMSGD::create() Ptr<SVMSGD> SVMSGD::create()
{ {
return makePtr<SVMSGDImpl>(); return makePtr<SVMSGDImpl>();
} }
...@@ -265,7 +265,7 @@ bool SVMSGDImpl::train(const Ptr<TrainData>& data, int) ...@@ -265,7 +265,7 @@ bool SVMSGDImpl::train(const Ptr<TrainData>& data, int)
weights_ = Mat::zeros(1, featureCount, CV_32F); weights_ = Mat::zeros(1, featureCount, CV_32F);
shift_ = areEmpty.first ? -1 : 1; shift_ = areEmpty.first ? -1 : 1;
return true; return true;
} }
Mat extendedTrainSamples; Mat extendedTrainSamples;
Mat average; Mat average;
......
...@@ -335,4 +335,3 @@ TEST(ML_SVMSGD, twoPoints) ...@@ -335,4 +335,3 @@ TEST(ML_SVMSGD, twoPoints)
foundShift /= normFoundWeights; foundShift /= normFoundWeights;
CV_Assert((norm(foundWeights - realWeights) < 0.001) && (abs((foundShift - realShift) / realShift) < 0.05)); CV_Assert((norm(foundWeights - realWeights) < 0.001) && (abs((foundShift - realShift) / realShift) < 0.05));
} }
...@@ -187,7 +187,7 @@ static void onMouse( int event, int x, int y, int, void* pData) ...@@ -187,7 +187,7 @@ static void onMouse( int event, int x, int y, int, void* pData)
switch( event ) switch( event )
{ {
case CV_EVENT_LBUTTONUP: case CV_EVENT_LBUTTONUP:
addPointRetrainAndRedraw(data, x, y, 1); addPointRetrainAndRedraw(data, x, y, 1);
break; break;
......
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