721
edits
No edit summary |
No edit summary |
||
Line 43: | Line 43: | ||
[[File:pointers_addresses1.png|800px]] | [[File:pointers_addresses1.png|800px]] | ||
= Homework Task = | |||
This week's task is related to machine learning. You will code the foundation of a classifier: the calculation of the centroid of a point cloud. | This week's task is related to machine learning. You will code the foundation of a classifier: the calculation of the centroid of a point cloud. | ||
Line 57: | Line 57: | ||
divide the sum by out number of point: centroid = sum / num_of_points | divide the sum by out number of point: centroid = sum / num_of_points | ||
== Example Centroid Calculation == | |||
Note: We sum up points simply by adding up their x and y values. E.g. | Note: We sum up points simply by adding up their x and y values. E.g. |