Question: (80%) Part B: evaluate the classification array for F(x, y) Your program must at the beginning use the following 2 lines of code to specify




(80%) Part B: evaluate the classification array for F(x, y) Your program must at the beginning use the following 2 lines of code to specify A and B: addi $1, $0, 5 # A = 5 addi $2, $0, -6 # B = -6 Again, if we modify these instructions, we can change A, B to other values. Your program should use these given A, B values, to provide the "classification" results: 0 C[i] = 1 C[i] = -1 when F(x, y) = A * x[i] + B * y[i] > = when F(x, y) = A * x[i] + B * y[i] =0) or negative (= 0: update a = a + x[i]; update b = b + y[i]; If f(x[il, y[i]) >= 0 but F(x[i], y[i]) = when F(x, y) = A * x[i] + B * y[i] =0) or negative (= 0: update a = a + x[i]; update b = b + y[i]; If f(x[il, y[i]) >= 0 but F(x[i], y[i])
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
