Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How best to fill missing values in a sparse matrix?

by BrowserUk (Patriarch)
on Mar 22, 2011 at 05:34 UTC ( [id://894710]=note: print w/replies, xml ) Need Help??


in reply to How best to fill missing values in a sparse matrix?

The missing values are filled importantly from the next good value in a column.

Following that criteria, your output for the sample input should be:

0.01,2,1 0.02,2,3 0.03,2,3 0.04,2,4 0.05,5,4 0.06,5,4

Which is quite different from the sample output you've provided?

Ie:

next next good good valu valu 0.01, v -999.9, * 1 0.02, v -999.9, v -999.9 0.03, v -999.9, * 3 0.04, * 2, v -999.9 0.05, v -999.9, v -999.9 0.06, * 5, * 4

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://894710]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found