Rename parameters lambda, gamma0 and c.

This commit is contained in:
Marina Noskova
2016-02-24 13:22:07 +03:00
parent 02cd8cf039
commit f3c4a6aab8
5 changed files with 74 additions and 76 deletions

View File

@@ -28,7 +28,7 @@ struct Data
bool doTrain(const Mat samples, const Mat responses, Mat &weights, float &shift);
//function finds two points for drawing line (wx = 0)
bool findPointsForLine(const Mat &weights, float shift, Point (&points)[2], int width, int height);
bool findPointsForLine(const Mat &weights, float shift, Point points[], int width, int height);
// function finds cross point of line (wx = 0) and segment ( (y = HEIGHT, 0 <= x <= WIDTH) or (x = WIDTH, 0 <= y <= HEIGHT) )
bool findCrossPointWithBorders(const Mat &weights, float shift, const std::pair<Point,Point> &segment, Point &crossPoint);
@@ -119,7 +119,7 @@ bool findCrossPointWithBorders(const Mat &weights, float shift, const std::pair<
return false;
}
bool findPointsForLine(const Mat &weights, float shift, Point (&points)[2], int width, int height)
bool findPointsForLine(const Mat &weights, float shift, Point points[2], int width, int height)
{
if (weights.empty())
{