Author Topic: Separation of datum and decision of their mistake  (Read 4464 times)

0 Members and 1 Guest are viewing this topic.

Offline KaramelTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: tr
Separation of datum and decision of their mistake
« on: December 11, 2017, 12:19:50 am »
Hi,

I have a general problem(not exactly with electronics, computers etc.)

Think like this. I have dots which I know their positions in x-y coordinates. They have numbers. 1-2-3-4.....98-99-100

1-2-11-12 are neighbor
2-3-12-13 are neighbor
11-12-21-22 are neighbor

but 2-3-12-14 there is a problem. 14 isn't neighbor with 2-3 and 12


As I said, I have only X-Y axis and their coordinates. Matlab is very convenient platform to work. Firstly, I will deal with diagonal data like below.



On image, everything is okay. I am trying to find a way and check they are okay or not.

 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Separation of datum and decision of their mistake
« Reply #1 on: December 11, 2017, 12:50:41 am »
So what is the problem? To check if given 4 numbers are close on a 10x10 grid? Are they always be sqares?

If so, it appears to be pretty easy in abstract. Pick the lowest number (N). One other number must be N+1. You have established lower base of your square.

The other numbers must be N+10 and N+11.
« Last Edit: December 11, 2017, 12:54:20 am by ataradov »
Alex
 

Offline KaramelTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: tr
Re: Separation of datum and decision of their mistake
« Reply #2 on: December 11, 2017, 01:17:30 am »
You are right but when complexity increases, there are some problems with working only distances.

My datum are never locating like exactly diagonal but if you check them with eyes, they preserve their diagonal shape. For example,

there is no problem.


there is a problem.


or there is a problem.


Now, my program works with calculating their distances and some cases it gives wrong result so, working with distance is not true approach for that problem.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Separation of datum and decision of their mistake
« Reply #3 on: December 11, 2017, 01:19:33 am »
I don't understand any of your pictures. What I'm supposed to be seeing there?

The problem is someting you formulate. Do so.

If they are not located on the grid, then how are they numbered? Is it always groups of 4? What do you actually want to know?
« Last Edit: December 11, 2017, 01:23:13 am by ataradov »
Alex
 

Offline xrunner

  • Super Contributor
  • ***
  • Posts: 7511
  • Country: us
  • hp>Agilent>Keysight>???
Re: Separation of datum and decision of their mistake
« Reply #4 on: December 11, 2017, 01:30:06 am »
You are right but when complexity increases, there are some problems with working only distances. ...

Now, my program works with calculating their distances and some cases it gives wrong result so, working with distance is not true approach for that problem.

I don't understand either. Any given placement of random points on an X-Y grid will yield values you can calculate for each point to any other existing point. Then you have a list of distances for comparison. That's all the information there is to get - XY of each point, the number of points, and distances to other points. I don't know how it can give a "wrong" result.

You seem to be leaving us with a gap in understanding of what you are trying to achieve.
I told my friends I could teach them to be funny, but they all just laughed at me.
 

Offline cncjerry

  • Supporter
  • ****
  • Posts: 1276
Re: Separation of datum and decision of their mistake
« Reply #5 on: December 11, 2017, 01:36:15 am »
if neighbor implies distance, then just compute a circle around each of the points and see if the target points lie within the circle radius (neighbor distance).  Or just compute the vector distance from each point and see if it is less than the neighbor distance.  both solutions imply an x,y grid. 

this sounds like the traveling salesman problem and if I remember correctly, the solution in terms of minimum distance has been found.

Another way to do it is to take the x,y points and load them into just about any drilling optmization program and let it figure it out.
 

Offline KaramelTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: tr
Re: Separation of datum and decision of their mistake
« Reply #6 on: December 11, 2017, 01:37:07 am »
I don't understand any of your pictures. What I'm supposed to be seeing there?

The problem is someting you formulate. Do so.

If they are not located on the grid, then how are they numbered? Is it always groups of 4? What do you actually want to know?

This is my trap. Every data must be located square, otherwise, I have a problem but, you don't understand that it doesn't must be exact square.

You are right but when complexity increases, there are some problems with working only distances. ...

Now, my program works with calculating their distances and some cases it gives wrong result so, working with distance is not true approach for that problem.

I don't understand either. Any given placement of random points on an X-Y grid will yield values you can calculate for each point to any other existing point. Then you have a list of distances for comparison. That's all the information there is to get - XY of each point, the number of points, and distances to other points. I don't know how it can give a "wrong" result.

You seem to be leaving us with a gap in understanding of what you are trying to achieve.

Distance calculation doesn't give me any folding information. Therefore, it gives wrong result.

 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Separation of datum and decision of their mistake
« Reply #7 on: December 11, 2017, 01:41:12 am »
This is my trap. Every data must be located square, otherwise, I have a problem but, you don't understand that it doesn't must be exact square.
How do you number things. You need to mathematically define what "exact square" means in your case.

If you  it is still good enough that you can obviously align things, then it does not matter. If it is not good enough, then it is a totally different task. Any you need to give way more information.

What is the source data that you have.  Can you post actual list of points, and identify a few places you want to pass/fail. Pictures in task like this don't help at all.
Alex
 

Offline KaramelTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: tr
Re: Separation of datum and decision of their mistake
« Reply #8 on: December 11, 2017, 01:42:34 am »
Okay guys,

I have an idea, maybe, I can use voronoi diagram for this problem. Every neighbor must share neighbor area otherwise, there is a problem but how can I implement it?

(This is such a image which shows what voronoi is)
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Separation of datum and decision of their mistake
« Reply #9 on: December 11, 2017, 01:43:31 am »
We don't understand what the problem is. How would we know if this will solve it?
Alex
 

Offline xrunner

  • Super Contributor
  • ***
  • Posts: 7511
  • Country: us
  • hp>Agilent>Keysight>???
Re: Separation of datum and decision of their mistake
« Reply #10 on: December 11, 2017, 01:52:57 am »
Okay guys,

I have an idea, maybe, I can use voronoi diagram for this problem.

OK a voronoi diagram ... I didn't study it in my field but OK -

https://en.wikipedia.org/wiki/Voronoi_diagram

It exists and can be generated - but for what reason?

As has been stated - What is the problem you want to solve?
I told my friends I could teach them to be funny, but they all just laughed at me.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Separation of datum and decision of their mistake
« Reply #11 on: December 11, 2017, 01:53:18 am »
- Check that you have a group of four to test.
- Sort the group of four in order. (Three compare and swap tests).
- Check that your group of four is X, X+1, X+10 and X+11 (where X is the value of the lowest point?
I already proposed that. But this does not work for non-exact squares, whatever that is.
Alex
 

Offline KaramelTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: tr
Re: Separation of datum and decision of their mistake
« Reply #12 on: December 11, 2017, 01:55:04 am »
Third time, I am writing.

Problem:
- I have 100 sample data. They must be located 10x10 in XY plane but not exactly square.
- Neighborhood must be preserved with every data. Meaning that there shouldn't be any folding.
- Any data shouldn't inside of any other data region.

What do I have:
- Only data coordinates.

What did I try:
- Calculate their distance and decide are they neighbor or not. It doesn't work.

Which idea do I have:
Voronoi.

At below. There are ten datum. They can split with voronoi but, I am not sure, voronoi is good way for me. Maybe it is stupid idea.

« Last Edit: December 11, 2017, 01:58:27 am by Karamel »
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Separation of datum and decision of their mistake
« Reply #13 on: December 11, 2017, 01:58:58 am »
- I have 100 sample data. They must be located 10x10 in XY plane but not exactly square.
What does "not exactly square" mean mathematically? Are they still aligned enough that you can assign them to a 10x10 grid locations?

If the picture is representative of the actual data, then map it to the 10x10 grid and proceed with advice from reply #1.

You are asking us to solve mathematical problem and refuse to supply mathematical definitions for source data.

Can you actually provide one full data set?
« Last Edit: December 11, 2017, 02:01:42 am by ataradov »
Alex
 

Offline xrunner

  • Super Contributor
  • ***
  • Posts: 7511
  • Country: us
  • hp>Agilent>Keysight>???
Re: Separation of datum and decision of their mistake
« Reply #14 on: December 11, 2017, 02:02:46 am »
Third time, I am writing.

Problem:
- I have 100 sample data. They must be located 10x10 in XY plane but not exactly square.
- Neighborhood must be preserved with every data. Meaning that there shouldn't be any folding.
- Any data shouldn't inside of any other data region.

So is it the case, that you want to draw a line around each data point, such that each point has an area around it that is the maximum it can have, with respect to every other neighbor at the same time also having it's maximum area, and so on? Is that the problem you want to solve?
I told my friends I could teach them to be funny, but they all just laughed at me.
 

Offline KaramelTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: tr
Re: Separation of datum and decision of their mistake
« Reply #15 on: December 11, 2017, 02:04:25 am »
Okay, let's talk mathematically.

Plot these values with Matlab or any other program, you will see any four neighbor is not square, but there is no any folding.
I don't know how can I represent it mathematically? Just imagine.

-
Code: [Select]
2,32694515300473 3,19594853070491
-1,87101696920136 3,53911469495653
-1,49697278629696 3,61227250912198
-0,812252816983230 3,82792629280857
-0,147918609198309 3,98059297701020
0,390461004711642 3,99667043104063
0,884635482977476 3,89297309863322
1,41862585593114 3,70047870224348
1,94486026951645 3,50023255289683
2,12802722655400 3,46714450605330
-2,78020371562039 2,63403212350418
-2,44007013428676 2,80574834840606
-1,75678333549307 3,19965838279159
-0,957829844819876 3,52074443618457
-0,182076532574938 3,73672888103408
0,463479763231325 3,76685862271947
1,04875144705676 3,64368797569522
1,65492544449036 3,43751734766827
2,23262763908458 3,24775492497955
2,51767773494581 3,20365705804921
-3,30654229102224 1,88642168618198
-2,95278191192729 1,99444008823907
-2,19788365455637 2,46574309431344
-1,24966822756095 2,94536868995197
-0,265633271800463 3,28799511426322
0,597207217948285 3,35668546129306
1,34596147203459 3,20013782630764
2,03883795370349 2,96279092581487
2,63524227709273 2,76965009245765
2,88123924344436 2,76864007565561
-3,73936517152663 1,02535636078190
-3,41601308955823 1,03028174544308
-2,71333769969827 1,44787495862483
-1,66526705427120 1,99782862591119
-0,368847457391923 2,47078002602619
0,871982677935723 2,62255864087147
1,84741070387648 2,48772894756460
2,57551820107007 2,29019690599247
3,11979971257069 2,14443394557546
3,30805148146207 2,17321217176120
-3,87986828925710 0,0271770496135864
-3,58772154035731 -0,00312662503954026
-3,01046171586551 0,207825865034808
-1,96275315054535 0,602081400536833
-0,368816705719322 1,09075567785720
1,27415088725822 1,41223956351439
2,41365415081305 1,48523689020387
3,09840051128794 1,49096860280329
3,56457705610688 1,48740235602663
3,74265705755724 1,52559093327826
-3,64462201092694 -1,05977000468018
-3,39677180801383 -1,07874999347574
-2,86680819341489 -1,04246063928960
-1,82429254380151 -0,905207207633807
-0,137762310557508 -0,547243107469706
1,61816140521391 -0,0447171503178926
2,77046893675470 0,348089720561431
3,42133504857468 0,634060957603966
3,86215834352058 0,831019367099838
4,06834690300680 0,923189211801449
-3,21452127783302 -2,08999042183416
-2,94423661881498 -2,07231036318961
-2,32478399098324 -2,11109321057077
-1,24020627495412 -2,14979523813510
0,274664693077160 -1,95769879216913
1,78998366724822 -1,42169102006789
2,84660055164790 -0,830818492535765
3,50448492247770 -0,316371793207998
3,96566931849085 0,0937393243670031
4,19488895323155 0,313011549676092
-2,66185083527865 -2,93965170298760
-2,34969683316718 -2,86343860765161
-1,58825260901408 -2,92018735678278
-0,522260143514478 -3,00168339918477
0,667309770121411 -2,90388813729791
1,81854359021624 -2,47392564720957
2,73233702766931 -1,89533103691950
3,38234462331372 -1,31481850768917
3,86449854653031 -0,794338991109572
4,11144103769076 -0,427888632314525
-2,00539382315959 -3,55091946711407
-1,69705429505853 -3,43677093360340
-0,904915502869441 -3,46187602412137
0,0305466579334755 -3,50856800159196
0,944474687567931 -3,43616148928553
1,83575795494745 -3,10429619686752
2,63660425944077 -2,60922485106903
3,25145504193097 -2,07082755812636
3,70563437043324 -1,55718114930929
3,93288485700551 -1,13732557886813
-1,04661509519607 -4,06115243199433
-1,18470853275476 -3,74662771684467
-0,473749811791085 -3,73474467970858
0,334443810077910 -3,74919758503128
1,09949897620091 -3,67366096540719
1,85682170564657 -3,41166696348707
2,57626860496710 -2,97429585155003
3,15288140241824 -2,48699543909825
3,55848249402213 -2,00876817060237
3,68518627149908 -1,72471305201884
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Separation of datum and decision of their mistake
« Reply #16 on: December 11, 2017, 02:46:04 am »
Is this how your data supposed to look like?
Alex
 

Offline hamster_nz

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: Separation of datum and decision of their mistake
« Reply #17 on: December 11, 2017, 02:47:43 am »
I did plot those points, but could not understand.

I think our issue is we have no clear understanding of the concept of "neighbor".

To me it is "share a common boundary", which works with shapes, but not a list of points.
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 

Offline KaramelTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: tr
Re: Separation of datum and decision of their mistake
« Reply #18 on: December 11, 2017, 03:38:13 am »
Is this how your data supposed to look like?

Yes. Exactly it is.

I did plot those points, but could not understand.

I think our issue is we have no clear understanding of the concept of "neighbor".

To me it is "share a common boundary", which works with shapes, but not a list of points.

Try to give numbers to them on graph. Like this 1-2-3.....98-99-100.

You will see that

1-2-11-12 are neighbor like rectangular. 2-3-12-13 as well.

another example, 78-79-88-89.

Now, I need to prove it with mathematically and finally I need to write its code. This is my job. I am just searching a way to solve this problem.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Separation of datum and decision of their mistake
« Reply #19 on: December 11, 2017, 03:44:04 am »
Yes. Exactly it is.
Cool, can you now paint some clusters on the picture that would show some examples of good and bad neighbors?

The way I understand the goal right now, there is no single solution.
Alex
 

Offline hamster_nz

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: Separation of datum and decision of their mistake
« Reply #20 on: December 11, 2017, 04:42:42 am »
Are you wanting to select four points, point
  • , point[x+10], point[x+11], point[x+1] and testing to see if they form a four-sided polygon, with the points run clockwise around the boundary, with no angles > 180 degrees?


This is much like back-face culling in computer graphics : https://en.wikipedia.org/wiki/Back-face_culling
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 

Offline KaramelTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: tr
Re: Separation of datum and decision of their mistake
« Reply #21 on: December 11, 2017, 04:26:34 pm »
Yes. Exactly it is.
Cool, can you now paint some clusters on the picture that would show some examples of good and bad neighbors?

The way I understand the goal right now, there is no single solution.

I think, we don't talk same language. I have given datum. Please give them numbers with starting first one. 1-2-3-4.....100 and show them with numbers on graph. You will see what I am talking about. In this data set, there is no any problem and this is the problem. I need to prove it with mathematically. This is my fourth time that I am writing my problem.

Are you wanting to select four points, point
  • , point[x+10], point[x+11], point[x+1] and testing to see if they form a four-sided polygon, with the points run clockwise around the boundary, with no angles > 180 degrees?


This is much like back-face culling in computer graphics : https://en.wikipedia.org/wiki/Back-face_culling

They must be create any polygon but shouldn't be any other point inside any each polygon. (folding)

« Last Edit: December 11, 2017, 04:50:22 pm by Karamel »
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Separation of datum and decision of their mistake
« Reply #22 on: December 11, 2017, 04:56:43 pm »
I think, we don't talk same language. I have given datum.
You have not given enough information. If you think you have, that's great, but don't expect an answer from us.

Please give them numbers with starting first one. 1-2-3-4.....100 and show them with numbers on graph.
So all points in the array are exactly numbered already, and number corresponds to the index, correct? But now what's the goal?

There are two situations here. One - calculations are done purely on the indexes, for which we have provided a solution. Second one - calculation involve coordinates, but then it is not clear how to mix indexes. You need to fix one or the other. We can ether check that correctly selected square in the index space corresponds to some geometric configuration in the coordinate space, or check something purely based on the coordinates.


Also, can you give some information on the source of the data. It may help with the solution. This looks like a very damaged QAM constellation, but I can't see how your math would be useful for this.
Alex
 

Offline KaramelTopic starter

  • Regular Contributor
  • *
  • Posts: 178
  • Country: tr
Re: Separation of datum and decision of their mistake
« Reply #23 on: December 11, 2017, 07:29:01 pm »
So all points in the array are exactly numbered already, and number corresponds to the index, correct? But now what's the goal?

There are two situations here. One - calculations are done purely on the indexes, for which we have provided a solution. Second one - calculation involve coordinates, but then it is not clear how to mix indexes. You need to fix one or the other. We can ether check that correctly selected square in the index space corresponds to some geometric configuration in the coordinate space, or check something purely based on the coordinates.


Also, can you give some information on the source of the data. It may help with the solution. This looks like a very damaged QAM constellation, but I can't see how your math would be useful for this.

Fifth time, I am telling you. Please prove that 1-2-11-12 are neighbor, they represent four cornered polygon and there is no any folding with any other data.

And do it for all any other four group data.

This is my problem. How can I give you more information than this? What should I say more?
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11234
  • Country: us
    • Personal site
Re: Separation of datum and decision of their mistake
« Reply #24 on: December 11, 2017, 07:32:21 pm »
Fifth time, I am telling you. Please prove that 1-2-11-12 are neighbor, they represent four cornered polygon and there is no any folding with any other data.
You keep using terms that you have not defined. What is the definition of "neighbor" and "folding"?

This is my problem. How can I give you more information than this? What should I say more?
You can provide actual examples on your actual data sets.

But I think I will sit this one out, I spent enough time on this, and you are not providing enough information.
Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf