Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Really slow sort, but useful.by BrowserUk (Patriarch) |
on Nov 29, 2002 at 05:21 UTC ( [id://216422]=note: print w/replies, xml ) | Need Help?? |
Dealing with the last point first. As the comparison was for a CLI, the bounding box are always the same as its fixed pitch fonts I'm dealing with. I did consider trying to grab bitmaps and determine it that way, but given that the use is for human perception rather than machine perception that is difficult. Even dealing with monochrome becomes dependant not just on the number of pels that are on relative to those off, it also depends on the concentration of those pels. It further depends on the way the pels in adjacent cells intereact. I found that but not trying to hard to judge it, but rather reacting to the obvious choices as appropriate and opting for "the same" whenever I didn't immediately perceive a difference, I ended up with a fairly good result. It probably wasn't perfect, but then no lives were dependant upon the accuracy of the conclusion:) For my purposes I only needed to grade them approximately as I then chose the two from the ends, space and #, and then 6 roughly evenly spaced throughout the range. I did find that it helped if I reduced the size of the font to the smallest available on my system (5pt Lucida TT or a 4x6 raster) as when I could no longer make out what the chars were and stopped trying to decide which was darker on the basis of logic and just went with my visual perception. Your right that humans aren't consistant, but that would always be true, regardless of the method used to marshall and record the decisions made. I have not been able to create a seg fault even when I just deliberately tried to make inconsistant decisions. I am unsure as to how that would occur? It's not like the sort would 'remember' my decisions, It's only ever comparing two values at a time? YMMV as they say:)... I wouldn't rely upon it for anything important, but it served it purpose. Okay you lot, get your wings on the left, halos on the right. It's one size fits all, and "No!", you can't have a different color.
In Section
Cool Uses for Perl
|
|