Results 1 to 5 of 5
  1. #1
    reddish is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Default Need nearest neighbor code

    hi im new in java... i need nearest neighbor code for my project.

    anyone can help..... plezz

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    You may wish to give enough information in your question so that it is somewhat possible to answer it. Also, it is far better to ask a specific question about your code than to ask for "the code" Best of luck!

  3. #3
    reddish is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Default

    the code is about matching the input data with stores data. it will output data that are very closet to the input.

    example input data is 41, data that already store is 39 45 and 59. so the the input is closet to 39.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    What many of us try to do here is not to give code solutions, but help you learn enough to get a solution. With that in mind, what code have you created so far? Oh, also, when you post code, please use code tags so your code retains its formatting. You do this by placing [code] on top of and and [/code] underneath any blocks of code you paste here. i.e.,

    Java Code:
    [code]
      // your code block goes here.
      // note the differences between the tag at the top vs the bottom.
    [/code]

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,556
    Rep Power
    23

    Default

    Start with a simple program and add to it as needed.
    Do you have a program that will read the input data and display it?
    After you can read it, then you can look at each value, compare it and save the desired value.

Similar Threads

  1. Is it possible to code like this?
    By Orange in forum New To Java
    Replies: 8
    Last Post: 08-13-2008, 10:29 AM
  2. I need help fixing my code.. or non code?
    By MrHuggykins in forum New To Java
    Replies: 1
    Last Post: 03-19-2008, 10:12 PM
  3. Here is my code, can anyone here help me?
    By Java_Man in forum New To Java
    Replies: 1
    Last Post: 02-16-2008, 02:41 AM
  4. tic tac toe code
    By zoe in forum New To Java
    Replies: 1
    Last Post: 07-23-2007, 04:36 PM
  5. Replies: 1
    Last Post: 04-26-2007, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •