in reply to Interpolating data using pdl

Hello karthik248,

I do not have any experience on Perl and Matrix. I did some research online and I found (PDL::Matrix, PDL::MatrixOps, PDL::NiceSlice).

These modules should be a good start for what you want to achieve, create a sample of code and a sample of input and output for all of us "not experienced" with matrices to replicate your problem and possibly try to find a solution to your problem.

Update: What about (PDL::Interpolate)?

Update2: What about (PDL::Primitive)?

Hope this helps, or at least gives you new ideas on how to proceed with your problem.

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^2: Interpolating data using pdl
by karthik248 (Acolyte) on Mar 15, 2017 at 11:27 UTC

    Thanks for your response.

    I'm aware of PDL::Interpolate but as i am new to PDL, i was unable to understand the terminology, so i was going through the docs. Soon I was lost in the docs getting nowhere. So I was hoping for a monk to guide me through it.

    Now I'm trying use this code snippet from the docs

    $source = 10*xvals(10,10) + yvals(10,10); $index = pdl([[2.2,3.5],[4.1,5.0]],[[6.0,7.4],[8,9]]); print $source->interpND( $index );