Hi Edward,
There isn't anything that matches exactly what you require in PDL at
the moment. I have a small package & files that I use that is more or
less what you are looking for. It consists of a package which
implements jbhist which is a histogramming routine that closely mimick
the IDL histogram routine and a jb_histnd .pdl file which I normally
autoload using PDL::AutoLoader and which implements a ND histogram
routine (e.g. if you give it N coordinate vectors of same length it
will bin using these in N dimensions).
The files are in:
http://www.astro.up.pt/~jarle/PDL/jbhist.tar.gz
The files within are:
jb_histnd.pdl - put this in your PDLLIB search path
jbhist.pd
Makefile.PL - These two are for installing the library. Run perl
Makefile.PL and make install (make test is not implemented as I am too
lazy!). This creates the package PDL::JBHist which must be used (and
which imports jbhist into your namespace..!)
testit.pl - A small test script.
I have added some docs to jb_histnd.pdl and jbhist.pd - after
installation man PDL::JBHist should give you some information and
pdldoc jb_histnd.pdl (and probably help jb_histnd in the perldl shell)
will give basic usage information.
Hope this helps!
Cheers,
Jarle.
On 3 Oct 2007, at 17:33, Hyer, Dr. Edward (Post Doc) wrote:
Hi PDL folks,
I am beginning some development of applications using PDL, which I'm
pretty excited about using since a) it's free, and b) I've always liked
Perl syntax.
I have previously done a lot of work in IDL, and one of the greatest
tools available in that language is a little routine called HIST_ND,
which (a) delivers N-dimensional histograms, and (b) can output
"reverse
indices." (indices to match each element of the input to its respective
histogram bin). I see that PDL has histogram functions, but I wonder if
these two features have been implemented.
Thanks for your great work,
--Edward H.
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl