Results 1 to 2 of 2

Math Help - Nearest neighbor!

  1. #1
    Newbie
    Joined
    Dec 2010
    Posts
    15

    Nearest neighbor!

    Hello everyone!

    For my homework I must do a palm recognition with nearest neighbor method. I get features of every palm with SIFT algorithm. But every picture of a palm has different number of features - different dimensions. At first I must do the learning set and training set. Ok I do that.
    But how can I found the nearest neighbor from training set in learning set?
    example in training]set: a=[1 2 3; 4 5 6 ; 7 8 9]
    learning set : b=[1 4 5; 7 4 1; 8 5 4; 2 3 1]
    c=[1 1 1; 2 2 2]

    How can I found the nearest neighbor for a (b or c)? I must write the code in Matlab so if anyone know any hint how can measure the distance between two matrix which have not the same dimension I will be very grateful.

    Thank you in advance.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Junior Member
    Joined
    Apr 2009
    Posts
    70
    Unless you know which dimensions match which then I dont see how you can do this?

    Imagine trying to find something in 3D space but only knowing the x and y coordinates!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Proof concerning "neighbor fractions"
    Posted in the Algebra Forum
    Replies: 4
    Last Post: October 1st 2010, 11:04 AM
  2. nearest integer function
    Posted in the Math Challenge Problems Forum
    Replies: 8
    Last Post: June 10th 2010, 08:55 PM
  3. Nearest and farthest point
    Posted in the Calculus Forum
    Replies: 1
    Last Post: November 18th 2009, 11:02 AM
  4. [SOLVED] nearest 10
    Posted in the Algebra Forum
    Replies: 2
    Last Post: February 17th 2009, 05:20 AM
  5. Rounding up to nearest whole number
    Posted in the Algebra Forum
    Replies: 4
    Last Post: February 15th 2006, 12:04 AM

Search Tags


/mathhelpforum @mathhelpforum