zeeshanqam
Junior Member level 3
- Joined
- Sep 9, 2009
- Messages
- 30
- Helped
- 3
- Reputation
- 6
- Reaction score
- 2
- Trophy points
- 1,288
- Location
- Pakistan
- Activity points
- 1,462
I have an assignment and I want to run this code in Python ASAP. I dont have any idea of this language Any one here could help me out please.. I appreciate his/her efforts..
There are two files with ASCII type.
You can program by using python as follows: 1. Your program read two files in respectively. 2. Each file is composed of xyz value in float type(in real value). You can calculate the distance by using randomly choosing between two points. Sampling number depends on you. Then you can make the histogram composed of distances and frequencies. 3. Program calculate the similiarity value by using histogram comparison(we already discuss this issues). 4. Program write the similarity value in file or console.
fileA ------------------------------------
35.884 30.895 49.120 36.177 29.853 50.124 37.296 30.296 51.074 38.553 30.400 50.259 38.357 31.290 49.044 39.559 31.209 48.082 34.968 30.340 48.234 34.923 29.775 50.910 37.441 29.265 52.113 39.572 30.954 51.086 37.155 30.858 48.364 39.261 32.018 46.920 ------------------------------------
fileB ------------------------------------
35.884 30.895 49.120 36.177 29.853 50.124 37.296 30.296 51.074 37.441 29.265 52.113 39.572 30.954 51.086 37.155 30.858 48.364 39.261 32.018 46.920
thank you in advance
There are two files with ASCII type.
You can program by using python as follows: 1. Your program read two files in respectively. 2. Each file is composed of xyz value in float type(in real value). You can calculate the distance by using randomly choosing between two points. Sampling number depends on you. Then you can make the histogram composed of distances and frequencies. 3. Program calculate the similiarity value by using histogram comparison(we already discuss this issues). 4. Program write the similarity value in file or console.
fileA ------------------------------------
35.884 30.895 49.120 36.177 29.853 50.124 37.296 30.296 51.074 38.553 30.400 50.259 38.357 31.290 49.044 39.559 31.209 48.082 34.968 30.340 48.234 34.923 29.775 50.910 37.441 29.265 52.113 39.572 30.954 51.086 37.155 30.858 48.364 39.261 32.018 46.920 ------------------------------------
fileB ------------------------------------
35.884 30.895 49.120 36.177 29.853 50.124 37.296 30.296 51.074 37.441 29.265 52.113 39.572 30.954 51.086 37.155 30.858 48.364 39.261 32.018 46.920
thank you in advance
Last edited: