Re: Parsing a data matrix.

From: Hector Ayala-del-Rio (hlayala_at_gmail.com)
Date: 11/22/04

  • Next message: FlashMX: "Re: Using Perls built in GREP"
    Date: Mon, 22 Nov 2004 15:11:08 -0400
    To: Perl Beginners List <beginners@perl.org>
    
    

    Actually, I should have specified that I was looking for general
    information before starting writing useless code. The message was not
    meant as a request of a free coding service. My APOLOGIES!!!
    Thanks for the references I will study them and try to write some code
    before writing to the list again.

    Hector

    On Mon, 22 Nov 2004 13:59:21 -0500 (EST), Chris Devers
    <cdevers@pobox.com> wrote:
    > On Mon, 22 Nov 2004, Hector Ayala-del-Rio wrote:
    >
    >
    >
    > > I have a data matrix that represents the similarities between a
    > > group of items
    > >
    > > A B C D E F G
    > > A 1
    > > B 1
    > > C 1
    > > D 1
    > > E 1
    > > F 1
    > > G 1
    > >
    > >
    > > I will like to extract all the similarity values for one particular
    > > item. Let say I will like to extract the similarity values of item C
    > > against all the other items. I will have to extract the values on C
    > > horizontaly until you reach the diagonal and then the values down.
    > > How can I do this in perl considering that the position of C could
    > > vary depending on the dataset. I have to do this extraction many
    > > times, this is why I am thinking on a perl script.
    >
    > Splendid.
    >
    > Have you started writing it yet?
    >
    > Do you need help with it or something?
    >
    > This list isn't a free script writing service, so if you don't have any
    > code to demonstrate, we really can't help you.
    >
    > You may want to take a look at the book _Mastering Algorithms with
    > Perl_; chapter seven deals with matrices, and sample code for the book
    > is available on O'Reilly's web site:
    >
    > <http://www.oreilly.com/catalog/maperl/>
    > <http://examples.oreilly.com/maperl/>
    >
    > You may also want to look at modules like Math::Matrix:
    >
    > <http://search.cpan.org/~ulpfr/Math-Matrix-0.4/Matrix.pm>
    > <http://search.cpan.org/search?query=matrix&mode=all>
    >
    > If you have specific questions, feel free to ask the list.
    >
    > --
    > Chris Devers
    >


  • Next message: FlashMX: "Re: Using Perls built in GREP"

    Relevant Pages

    • Re: Typesetting email automatically (macro package?)
      ... I wound up writing a Perl script to extract the ...
      (comp.text.tex)
    • Re: tar: compress fast - extract very slow
      ... I extract the same tar.gz-file BUT VERY SLOWLY ... How can I fix this - as I need a fast restore of the uncompressed file ... The writing of that much data would ... I would guess it's the physical disk ...
      (comp.os.linux.misc)
    • Re: Problem with zipfile and newlines
      ... I think I've worked it out after reading the 'Binary mode for files' ... The upshot of this is that writing out the zipfile-extracted files ... I've got a zipped archive that I can extract files from with my ... files in python via the zipfile module. ...
      (comp.lang.python)
    • Re: Connes & Marcolli paper on renormalization
      ... > If you follow my recipe of writing the time-ordered exponential ... > in the momentum representation, you can extract a formula for how to ...
      (sci.physics.research)