Re: Parsing a data matrix.
From: Hector Ayala-del-Rio (hlayala_at_gmail.com)
Date: 11/22/04
- Previous message: Chris Devers: "Re: Parsing a data matrix."
- In reply to: Chris Devers: "Re: Parsing a data matrix."
- Next in thread: FlashMX: "Re: Using Perls built in GREP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
>
- Previous message: Chris Devers: "Re: Parsing a data matrix."
- In reply to: Chris Devers: "Re: Parsing a data matrix."
- Next in thread: FlashMX: "Re: Using Perls built in GREP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|