Note: Written problems must be typed and submitted as a Portable Document Format (PDF) file. All major word processors provide equation editing capabilities; therefore, all mathematics must also be typed. Here is a small list of equation editing software (there are many others):
|
Task Environment |
Fully Observable or Partially Observable |
Single Agent or Multiagent |
Deterministic or Stochastic |
Episodic or Sequential |
Static or Dynamic |
Discrete or Continuous |
Known or Unknown |
| Checkers | Fully Observable | Multiagent | Deterministic | Sequential | Static | Discrete | Known |
| Chess (without a clock) | |||||||
| Poker | |||||||
| Human Driving | |||||||
| Robotic Car (Machine Driving) | |||||||
| Medical Diagnosis | |||||||
| Image Analysis | |||||||
| Newborn Baby |
{ 60, 70, 80, 90, 100, 70, 80, 90, 75, 85, 80 }
| Name | Value |
| Mean: | |
(Slope):
|
|
(Intercept):
|
{ { 0, 1 }, { 1, 0 }, { 0, 0 } }{ { 10, 10 }, { 10, 9 }, { 9, 10 } }| Name | Value |
| Mean of Class 1: | |
| Mean of Class 2: | |
| Midpoint: | |
| Normalized Normal Vector: | |
| Equation of the Separating Plane: |
(a circle with a radius of one) and using a level set, design a single if statement that classifies points into two classes: (1) those points on or in the circle and (2) those points outside the circle. Show that { 0, 0 } is in that circle, but that { 1, 1 } is not.linprog4.cs.fsu.edu:print.hpp: The file containing operator << to print arrays.
data.cpp: The file containing the constants dimension and data for this programming problem.
main.cpp: The file for editing.
makefile: The makefile for linprog4.cs.fsu.edu.
print.hpp, data.cpp, and makefile. Only make changes to main.cpp.std::cout to output information exactly in the following format (replace numbers below with your program's calculated values):
Sample Mean x: 1.111111
Sample Mean y: 2.222222
Biased Sample Covariance xy: 3.333333
Biased Sample Variance xx: 4.444444
Weight w: 5.555555
Slope m: 6.666666
Intercept b: 7.777777
Linear Regression: 8.888888 * x + 9.999999
1.111111 represents the mean of the x values,
2.222222 represents the mean of the y values,
3.333333 represents the biased sample covariance (the scaled sum of the product of differences for the x and y values),
4.444444 represents the biased sample variance for the x values (the scaled sum of squared differences for the x values),
5.555555 represents the value of the weight (w),
6.666666 represents the value of the slope (m),
7.777777 represents the value of the intercept (b),
8.888888 and 9.999999 represent the value of the slope and the intercept, respectively (m * x + b)
data.cpp is as follows:
print.hpp: The file containing operator << to print arrays.
data.cpp: The file containing the constants dimension and data for this programming problem.
main.cpp: The file for editing.
makefile: The makefile for linprog4.cs.fsu.edu.
print.hpp, data.cpp, and makefile. Only make changes to main.cpp.std::cout to output information exactly in the following format (replace numbers below with your program's calculated values):
Sample Mean x: 1.111111
Sample Mean y: 2.222222
Biased Sample Covariance xy: 3.333333
Biased Sample Variance xx: 4.444444
Weight w: 5.555555
Slope m: 6.666666
Intercept b: 7.777777
Linear Regression: 8.888888 * x + 9.999999
1.111111 represents the mean of the x values,
2.222222 represents the mean of the y values,
3.333333 represents the biased sample covariance (the scaled sum of the product of differences for the x and y values),
4.444444 represents the biased sample variance for the x values (the scaled sum of squared differences for the x values),
5.555555 represents the value of the weight (w),
6.666666 represents the value of the slope (m),
7.777777 represents the value of the intercept (b),
8.888888 and 9.999999 represent the value of the slope and the intercept, respectively (m * x + b)
data.cpp is as follows:
data.txt: The file containing 2D data that your program will read in from Standard Input.
print.hpp: The file containing operator << to print arrays and std::vector.
main.cpp: The file for editing.
makefile: The makefile for linprog4.cs.fsu.edu.
print.hpp and makefile. Only make changes to main.cpp. You should make changes to data.txt to test your work; however, a different data.txt (not provided) will be used to grade this problem.std::cin to read the x and y values in data.txt from Standard Input. data.txt will be formatted as follows:
sample 1's x value
sample 1's y value
sample 2's x value
sample 2's y value
.
.
.
sample n's x value
sample n's y value
std::cout to output information exactly in the following format (replace numbers below with your program's calculated values):
Sample Mean x: 1.111111
Sample Mean y: 2.222222
Biased Sample Covariance xy: 3.333333
Biased Sample Variance xx: 4.444444
Weight w: 5.555555
Slope m: 6.666666
Intercept b: 7.777777
Linear Regression: 8.888888 * x + 9.999999
1.111111 represents the mean of the x values,
2.222222 represents the mean of the y values,
3.333333 represents the biased sample covariance (the scaled sum of the product of differences for the x and y values),
4.444444 represents the biased sample variance for the x values (the scaled sum of squared differences for the x values),
5.555555 represents the value of the weight (w),
6.666666 represents the value of the slope (m),
7.777777 represents the value of the intercept (b),
8.888888 and 9.999999 represent the value of the slope and the intercept, respectively (m * x + b)
( n - 1 ) / n somewhere.data.cpp below, create two planes: (1) one that passes through { -0.75, 0 } and { 0, 0.75 } and (2) another the passes through { 0, -0.75 } and { 0.75, 0 }{ 0, 1 } results in a positive value and { 0, 0 } results in a negative value.{ 1, 0 } results in a positive value and { 1, 1 } results in a negative value.std::sort from <algorithm> and a lambda or functor to sort both of these "classification" containers in ascending order based on x values first, then y values. Example: Sorting the list { { 1, 3 }, { 2, 1 }, { 1, 2 } } would result in the list { { 1, 2 }, { 1, 3 }, { 2, 1 } }.print.hpp: The file containing operator << to print arrays and std::vector.
data.cpp: The file containing the constants dimension and data for this programming problem.
main.cpp: The file for editing.
makefile: The makefile for linprog4.cs.fsu.edu.
print.hpp, data.cpp, and makefile. Only make changes to main.cpp.std::cout to output information in the following format (replace the data below with data classified by your program):
CLASS 1 (POSITIVE OR ZERO):
{ 1.111111, 2.222222 }
{ 3.333333, 4.444444 }
.
.
.
CLASS 2 (NEGATIVE):
{ 5.555555, 6.666666 }
{ 7.777777, 8.888888 }
.
.
.

print.hpp: The file containing operator << to print arrays and std::vector.
data.cpp: The file containing the constants dimension and data for this programming problem.
main.cpp: The file for editing.
makefile: The makefile for linprog4.cs.fsu.edu.
print.hpp, data.cpp, and makefile. Only make changes to main.cpp.std::cout to output information in the following format (replace the data below with data classified by your program):
CLASS 1 (UPPER LEFT-HAND-SIDE POINT CLOUD):
{ 1.111111, 2.222222 }
{ 3.333333, 4.444444 }
.
.
.
CLASS 2 (LOWER RIGHT-HAND-SIDE POINT CLOUD):
{ 5.555555, 6.666666 }
{ 7.777777, 8.888888 }
.
.
.

such that when the angle from the command line is zero degrees, the normal vector will be { 1, 0 }main.exe -x0 number -y0 number -angle numbernumber following -x0 and -y0 is the origin point of the linear classifier (i.e. the plane) and the number following -angle is the angle in degrees.data.txt: The file containing 2D data that your program will read in from Standard Input.
print.hpp: The file containing operator << to print arrays and std::vector.
main.cpp: The file for editing.
makefile: The makefile for linprog4.cs.fsu.edu.
print.hpp and makefile. Only make changes to main.cpp. You should make changes to data.txt to test your work; however, a different data.txt (not provided) will be used to grade this problem.std::cin to read the x and y values in data.txt from Standard Input. data.txt will be formatted as follows:
sample 1's x value
sample 1's y value
sample 2's x value
sample 2's y value
.
.
.
sample n's x value
sample n's y value
std::cout to output information in the following format (replace the data below with data classified by your program):
CLASS 1 (POSITIVE OR ZERO):
{ 1.111111, 2.222222 }
{ 3.333333, 4.444444 }
.
.
.
CLASS 2 (NEGATIVE):
{ 5.555555, 6.666666 }
{ 7.777777, 8.888888 }
.
.
.
assignment_01_lastname.pdf file for your written assignment and an assignment_01_lastname.zip file for your programming assignment (where lastname is your last name). Ensure that your assignment_01_lastname.zip retains the directory structure of the original zip file. In other words, ensure your zip file has the following directory structure:
/
classification_question_1/
data.cpp
data.png
main.cpp
makefile
classification_question_2/
data.cpp
data.png
main.cpp
makefile
classification_question_3/
data.txt
main.cpp
makefile
include/
print.hpp
regression_question_1/
data.cpp
data.png
main.cpp
makefile
regression_question_2/
data.cpp
data.png
main.cpp
makefile
regression_question_3/
data.txt
main.cpp
makefile
makefile
assignment_01_lastname.pdf file for your written assignment and your assignment_01_lastname.zip file for your programming assignment to the Assignment 01 location on the BlackBoard site: https://campus.fsu.edu.