Question

Normal distribution and discriminant functions Matlab Write a procedure to calculate the Euclidean distance between two...

Normal distribution and discriminant functions
Matlab
Write a procedure to calculate the Euclidean distance between two
arbitrary points.

Homework Answers

Answer #1

The Euclidean distance between two points in either the plane or 3-dimensional space measures the length of a segment connecting the two points. It is the most obvious way of representing distance between two points.

The Pythagorean Theorem can be used to calculate the distance between two points, as shown in the figure below. If the points (x1,y1) and (x2,y2)  are in 2-dimensional space, then the Euclidean distance between them is √(x2−x1)2+(y2−y1)2.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
use matlab: ) Computing a distance and travel time between two locations. Obtain user input for...
use matlab: ) Computing a distance and travel time between two locations. Obtain user input for two variables, X and Y, which describe a coordinate location. Assume this coordinate is in units of miles. Write a script that : a) computes the distance D between the two points (0,0) and (X,Y) in kilometers. b) if D is greater than 5 kilometers, assume we drive at a speed of 40 km per hour. Otherwise, assume we walk at a speed of...
Matlab Create plot of the following density functions using x values between -10 and 10 with...
Matlab Create plot of the following density functions using x values between -10 and 10 with an increment of 0.02 -Normal cumulative distribution function with mu=1, sigma=1, mu=0, sigma=2, mu=0,sigma=1/2
Write a Matlab R program that plots the ramp response of the values of the voltage...
Write a Matlab R program that plots the ramp response of the values of the voltage across the capacitor for any arbitrary value between 1 and 10,000 Ohms resistor (R), 0.1 to 3 Henry inductor (L), and capacitor (C) values between 0.000001 and 0.1 Farad of a series resistor, inductor, and capacitor (RLC) circuit. Suggestions 1. Determine the transfer functions H(s) of the series RLC circuit where the output is capacitor voltage. 2. Determine the rational functions defined by the...
Numerical PDE write a matlab program  to solve this equation numerically. Don't use MATLAB'S built-in functions please....
Numerical PDE write a matlab program  to solve this equation numerically. Don't use MATLAB'S built-in functions please. dy/dt = e ^ y − αy, y(0) = 0 where α > 0 is a parameter. Discuss the equilibrium points, the values when e^y = αy and the case when α = 0
Write a Matlab program to plot the cosine wave. That is plot y=cos(k1x) vs. x for...
Write a Matlab program to plot the cosine wave. That is plot y=cos(k1x) vs. x for x varying from 0 to 2pi radians. The value of k1 is given at the end of this document. You can choose the increment for x. Note that large values of the increment will give you a coarse graph. Note: Matlab has two functions to calculate the sine of an angle: sin(x) and sind(x). What is the difference between these two functions? Use help...
(a) Generate the following discrete functions using MATLAB. Plot the two functions on the same page...
(a) Generate the following discrete functions using MATLAB. Plot the two functions on the same page using MATLAB stem function. For x2[k] plot the real and imaginary parts separately. Therefore, a total of three plots will be plotted on one page. (i) x1[k]= -5.1sin((0.1*pi*k)-3*pi/4)+1.1cos(0.4*pi*k) such that k belongs in[-10,40] (ii)x2[k]= ((-0.9)^k)*exp(i*pi*k/10) such that k belongs in[0,100] (b) Are x1[k] and x2[k] periodic sequences. If so, what are their periods? Mark them on the plots. (c) Calculate the total energy of...
The distance between two connected nodes in a graph is the length (number of edges) of...
The distance between two connected nodes in a graph is the length (number of edges) of the shortest path connecting them. The diameter of a connected graph is the maximum distance between any two of its nodes. Let v be an arbitrary vertex in a graph G. If every vertex is within distance d of v, then show that the diameter of the graph is at most 2d.
Write down the condition for thin film interference. Calculate the position (angular) and the distance between...
Write down the condition for thin film interference. Calculate the position (angular) and the distance between the 3rd and 4th dark lines of the interference pattern on the screen when the slits are spaced 0.450 mm apart and are placed 80.0 cm from the screen. The slits are illuminated with coherent light of wavelength 550nm. Also calculate the distance between the 3rd and 4th dark lines when the entire apparatus was immersed in water. How this separation compares with separation...
3. In a normal distribution, there is a constant proportion of the area under the curve...
3. In a normal distribution, there is a constant proportion of the area under the curve lying between the mean and any given distance from the mean and is measured in____________. (0.25 Points)
Moment Generating Functions A student's score on a Psychology exam has a normal distribution with mean...
Moment Generating Functions A student's score on a Psychology exam has a normal distribution with mean 65 and standard deviation 10. The same student's score on a Chemistry exam has a normal distribution with mean 60 and standard deviation 15. The two scores are independent of each other. What is the probability that the student's mean score in the two courses is over 80? Before solving, show that the mgf here is an mgf of a Normal distribution. (Biggest confusion)