hi im new in java... i need nearest neighbor code for my project.
anyone can help..... plezz
Printable View
hi im new in java... i need nearest neighbor code for my project.
anyone can help..... plezz
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!
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.
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.,
Code:[code]
// your code block goes here.
// note the differences between the tag at the top vs the bottom.
[/code]
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.