Dear Perl Folks,
Maybe did you have solved this kind of question?

I have to use two related $a. $b ndarray performing
some computation on $b that could be
used to map with $a

I have a horrible solution for my specifique problem
but it is sure that PDL has a cleaver version for solving it

@step=(-3..3);
$delta=0.2;
@res= map {$a->index(which(abs($_-$b)<$delta))->sum} @step ;

Then, the list @res cumulates data of $a for which $b are
in a desire intervals

Regards

PS: sorry if I sent my post to a wrong email list






-- 


Dr. Guillermo P. Ortiz
Electromagnetismo Aplicado
Dto. FĂ­sica, Facultad de Ciencias Exactas
Universidad Nacional del Nordeste
Avda Libertad 5460, Campus UNNE.
W3404AAS Corrientes, Argentina.
(+54) 379-4424678 interno 4613
gortiz* at *unne edu ar
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to