<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to do clustering in mathcad ? in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553086#M180898</link>
    <description>&lt;P&gt;1. There are no constrains so size of the cluster are random&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Yes i want to find out what's inside the each cluster (say number of node's which is present inside the cluster) !&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 10:29:34 GMT</pubDate>
    <dc:creator>Mathcad111</dc:creator>
    <dc:date>2018-06-07T10:29:34Z</dc:date>
    <item>
      <title>How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553040#M180886</link>
      <description>&lt;P&gt;&amp;nbsp;For example i have deployed some random nodes in (200x200), but the problem is i want to form some random cluster's, like the given graph, please look my mathcad file !&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 07:46:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553040#M180886</guid>
      <dc:creator>Mathcad111</dc:creator>
      <dc:date>2018-06-07T07:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553051#M180888</link>
      <description>&lt;P&gt;Your question is not so clear to me. I do not think the answer you're looking for is as simple as mine ...............&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/7881i3A12BC5A0D072DE8/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="M111 answer.jpg" title="M111 answer.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 07:12:18 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553051#M180888</guid>
      <dc:creator>-MFra-</dc:creator>
      <dc:date>2018-06-07T07:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553058#M180889</link>
      <description>&lt;P&gt;no i not looking for this solution i have attached modified mathcad file please go through it (inform me if have some question regarding it) !&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 07:46:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553058#M180889</guid>
      <dc:creator>Mathcad111</dc:creator>
      <dc:date>2018-06-07T07:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553075#M180890</link>
      <description>&lt;P&gt;I have modified my mathcad but i don't know how to expand for full block !! please check mathcad file !&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 09:33:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553075#M180890</guid>
      <dc:creator>Mathcad111</dc:creator>
      <dc:date>2018-06-07T09:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553078#M180892</link>
      <description>&lt;P&gt;you want something like that expandable as you like. right?&amp;nbsp;in GSM networks, for example, the hexagons are all the same size and adjacent.&amp;nbsp;To the chart&lt;SPAN&gt;, must be added&amp;nbsp;&lt;/SPAN&gt;the random positions of the sources&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt; while the antennas are in the vertices.&amp;nbsp;It's been a long time since I've dealt with the subject.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="cluster.jpg" style="width: 906px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/7883i8A3209D6D1B67A75/image-size/large?v=v2&amp;amp;px=999" role="button" title="cluster.jpg" alt="cluster.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm working on it&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 10:21:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553078#M180892</guid>
      <dc:creator>-MFra-</dc:creator>
      <dc:date>2018-06-07T10:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553080#M180893</link>
      <description>&lt;P&gt;Thank for reply, Yes the same!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 10:12:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553080#M180893</guid>
      <dc:creator>Mathcad111</dc:creator>
      <dc:date>2018-06-07T10:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553081#M180894</link>
      <description>&lt;P&gt;Any additional constraints like same area/size of all clusters or same number of nodes in each cluster?&lt;/P&gt;
&lt;P&gt;Do you only need a graphical representation of a hex grid like FM showed or do you need to sort your nodes according to which cluster they are in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 10:18:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553081#M180894</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-06-07T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553085#M180897</link>
      <description>&lt;P&gt;Basically you should work in the complex plan. See the following example. I leave you to continue. I do not go further.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/7884i5D85B7E48AA2738C/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Cluster0.jpg" title="Cluster0.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 10:26:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553085#M180897</guid>
      <dc:creator>-MFra-</dc:creator>
      <dc:date>2018-06-07T10:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553086#M180898</link>
      <description>&lt;P&gt;1. There are no constrains so size of the cluster are random&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Yes i want to find out what's inside the each cluster (say number of node's which is present inside the cluster) !&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 10:29:34 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553086#M180898</guid>
      <dc:creator>Mathcad111</dc:creator>
      <dc:date>2018-06-07T10:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553088#M180899</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;2. Yes i want to find out what's inside the each cluster (say number of node's which is present inside the cluster) !&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Clustering a plane with hexagons is quite easy but sorting the nodes and assigning each node to a specific cluster od counting the nodes in each cluster can be quite demanding, given that you want a hexagonal area and not a simple rectangle or even square which would make the task much simpler.&lt;/P&gt;
&lt;P&gt;There sure are some clever algorithms to determine if a point is inside a given polygon and it may be even simpler in your case as you have regular hexagons.&lt;/P&gt;
&lt;P&gt;Furthermore you would have to define what the count should if a point is exactly on a border between two hexagons or is one of the corners belonging to three hexagons.&lt;/P&gt;
&lt;P&gt;If you are happy with an approximation you could simply count the nodes within the circumcircle of a hexagon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 10:50:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553088#M180899</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-06-07T10:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553156#M180904</link>
      <description>&lt;P&gt;For whatever its worth here is a crude way to create a hex grid.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="B1.PNG" style="width: 585px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/7889i43DC47A9829DDEEE/image-dimensions/585x414?v=v2" width="585" height="414" role="button" title="B1.PNG" alt="B1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="B2.PNG" style="width: 581px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/7890iF12EFB90E564E122/image-dimensions/581x325?v=v2" width="581" height="325" role="button" title="B2.PNG" alt="B2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For counting the nodes within a hexagon you might search the forum for a routine a I posted quite a while ago which decides for any polygon if a given point is inside or not. Using a quick search here in the forum did not bring up the thread I have in mind but a routine by Stuart which may serve as well.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 15:52:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553156#M180904</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-06-07T15:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553365#M180917</link>
      <description>&lt;P&gt;Thank you ! i got some idea how to find the "node" under the hexogen (i'm not sure whether it will work!) let me check!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 05:58:56 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553365#M180917</guid>
      <dc:creator>Mathcad111</dc:creator>
      <dc:date>2018-06-08T05:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553380#M180919</link>
      <description>&lt;P&gt;but, on the hypothesis that the hexagons are regular, why do they deform after rotation?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 07:27:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553380#M180919</guid>
      <dc:creator>-MFra-</dc:creator>
      <dc:date>2018-06-08T07:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553384#M180920</link>
      <description>&lt;P&gt;Because, apart from rotating, a different scaling in x- and y- directions is applied...&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 07:59:48 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553384#M180920</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2018-06-08T07:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553387#M180921</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/263723"&gt;@-MFra-&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;but, on the hypothesis that the hexagons are regular, why do they deform after rotation?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have not shown how to rotate the grid, I just mentioned that it could be done.&lt;/P&gt;
&lt;P&gt;What I showed was just different scaling in x- and y-direction - you would expect "deformation" when doing so &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Apart from using different scaling factors the difference in the last two plots is that the left one scales wrt the origin and the right one wrt (-7/-7), which therefore remains the center of the lower left hexagon. Just playing around as I not really sure what exactly is needed.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 08:15:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553387#M180921</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-06-08T08:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553408#M180922</link>
      <description>&lt;P&gt;I found a sheet in my archive which compares a couple of different "Point-in-Polygon" algorithms. Its not the routine (based on the Jordan algorithm) I was talking about in my former post but they may serve as well.&lt;/P&gt;
&lt;P&gt;I attach the sheet - maybe it can be of use for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 10:10:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553408#M180922</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-06-08T10:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553462#M180924</link>
      <description>&lt;P&gt;OK, now I found the Jordan routine I was talking about.&lt;/P&gt;
&lt;P&gt;I added it in the attached worksheet along with some routines to scale, rotate and translate the grid&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/7910iC83ADC9D0EC504E1/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="B1.PNG" title="B1.PNG" width="677" height="249" /&gt;&lt;/P&gt;
&lt;P&gt;and also included an example how you may use the program to count the number of points in one hexagon:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/7911i9EB7BDCCED5B1B31/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="B.PNG" title="B.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 13:22:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553462#M180924</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-06-08T13:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553588#M180930</link>
      <description>&lt;P&gt;Apologies for my late reply, it's looks good can we able to extend for multiple hexogen ? and finding the no. of nodes under the cluster (that you have did already for single hexogen)!&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 05:10:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553588#M180930</guid>
      <dc:creator>Mathcad111</dc:creator>
      <dc:date>2018-06-09T05:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553591#M180931</link>
      <description>&lt;P&gt;Now it's working for all hexagon (it's small modification are required from what you did already) Big Thanks for all the people!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 06:37:38 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553591#M180931</guid>
      <dc:creator>Mathcad111</dc:creator>
      <dc:date>2018-06-09T06:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to do clustering in mathcad ?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553596#M180933</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/289260"&gt;@Mathcad111&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Apologies for my late reply, it's looks good can we able to extend for multiple hexogen ? and finding the no. of nodes under the cluster (that you have did already for single hexogen)!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The routine will give you the number of nodes in any polygon you feed in.&lt;/P&gt;
&lt;P&gt;So you will have to decide for a data structure you'd like to manage the various hexagons with.&lt;/P&gt;
&lt;P&gt;Clustering a picture with a hexagon structure is one thing, managing that grid as a bunch of individually addressable areas is another. The grid structure I created consists of a list of vertex coordinates separate by a line of NaN's. So you should have not much troubles to split it into a list of single hexagons which you then could feed in the point counting routine. Maybe a vector consisting of elements representing a hexagon each could be a suitable structure. Depends on your needs and what exactly you have in mind.&lt;/P&gt;
&lt;P&gt;You still have not decided what to do if a point lies exactly on the border of the polygon.&lt;/P&gt;
&lt;P&gt;My routine will not distinguish between point an a segment of the border (belonging to 2 hexagons) and point being a vertex (belonging to 3 hexagons). If thats an issue the Punkt_in_Polygon and some other routines will have to be modified.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 08:02:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-to-do-clustering-in-mathcad/m-p/553596#M180933</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2018-06-09T08:02:16Z</dc:date>
    </item>
  </channel>
</rss>

