1. Homepage
  2. Homework
  3. UM-SJTU VG101 22SU - Homework2 - Find Out Outlier Robot

UM-SJTU VG101 22SU - Homework2 - Find Out Outlier Robot

Engage in a Conversation
This question has been solved

Problem 2

Background: Finding out the outlier, an observation that differs significantly from other observations, is a common problem in data science. In reality, for example, when a swarm of CourseNana.COM

robots are deployed to monitor an area as a team, if a user in the control room notice that the location of a robot falls far away from other robots. The user will immediately know that the robot could be malfunctioning. CourseNana.COM

Now assume that a user, called Charlie, programmed the robot teams to survey the area following a direct line. Given the location report from the leader robot at the time t , find out the outlier robot, represented by its index. The location report will be imported into your program manually via the command line. The location report is represented as a n-by-2 matrix, where elements in each row i represents the geolocation (x and y coordinates) of robot i . CourseNana.COM

Example: CourseNana.COM

  CourseNana.COM

Input: [0 1;1 3;2 5;3 8] CourseNana.COM

Output: 4 CourseNana.COM

# This is because the location reported by the last robot is not following the same line as the rest three robots. CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
Matlab代写,Matlab代编,Matlab代考,Matlabhelp,Matlab作业代写,Matlab编程代写,Matlabprogramming help,Matlabassignment help,Matlabsolution,