I have gone ahead and calculated all of the possible distances between any two points between and within each data set. ...

For example (using set notation), ...

If you:

  1. posted your code for performing your calculations;

    Doing this shows your effort, and gives you the opportunity do step 2.

    It may also be the case that it would be more simple and economical to produce the required out as you generate it, rather than building your complicated data structure, and then having to iterate it a second time to produce the required output format.

  2. used Data::Dumper to display: some (very) simple inputs; and the resulting outputs;

    Displaying your inputs and outputs in this form will likely allow more monks to understand your requirements than your english description, couched in set notation.

  3. manually constructed CSV data showing how you would like the results above to be written for later import by Excel;

    Trying to write Excel format files directly just complicates matters, and excludes anyone who doesn't use Excel from testing any solution they might propose.

    Excel is perfectly happy to import CSV. CSV is very easy to write.

As is, your question would require any interested monk to reproduce your combinatory distances calculating code, before even attempting to answer your question.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

In reply to Re: Hash of Hashes of Hashes of Hashes by BrowserUk
in thread Hash of Hashes of Hashes of Hashes by Comment

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.