[Solved] P-R Assignment 1

$25

File Name: P-R_Assignment_1.zip
File Size: 150.72 KB

SKU: [Solved] P-R Assignment 1 Category: Tag:
5/5 - (1 vote)

Code file and output screenshots for all the questions.

Q1. Calculate the distance between the two normalized histograms H1 and H2 using each of the following methods:

  1. KL Distance
  2. Bhattacharyya Distance

H1 = [ 0.24, 0.2, 0.16, 0.12, 0.08, 0.04, 0.12, 0.04]

H2 = [ 0.22, 0.23, 0.16, 0.13, 0.11, 0.08, 0.05, 0.02] Q2. Given (hq-ht)T = (0.5 0.5 -0.5 -0.25 -0.25) and

Find the quadratic form distance.

Q3. Compare two text files doc1.txt and doc2.txt using cosine distance.

doc1.txt

MATLAB is a program for solving engineering and mathematical problems. The basic

MATLAB objects are vectors and matrices, so you must be familiar with these before making extensive use of this program.

doc2.txt

MATLAB works with essentially one kind of object, a rectangular numerical matrix. Here is some basic information on using MATLAB matrix commands.

Q4. Classify flower 0, 50, and 100 from the Iris Dataset (.csv file) attached along with the assignment document into one of the three classes as given in dataset specification:

Dataset Specifications:

Total number of samples = 150

Number of classes = 3 (Iris setosa, Iris virginica, and Iris versicolor) The number of samples in each class = 50.

Directions to classify:

  1. Use features PetalLengthCm and PetalWidthCm only for classification.
  2. Consider flowers 0,50 and 100 as test cases.
  3. Plot the distribution of rest 147 sample points along with their classes( differentiate classes with different colour). Consider PetalWidthCm along Y-axis and PetalLengthCm along X-axis.
  4. Capture the properties of the distribution and use suitable distance metrics to classify the flowers 0,50 and 100 into one of the classes.
  5. Print their class and plot the points on the previous plot with a marker differentiating the three points.

Q5. Consider the following images. Obtain the histograms for each of the images. Using a suitable distance measure, find the distance between the query image and reference images.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] P-R Assignment 1
$25