Open problem: optimal calculator keyboard layout based on key usage statistics - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: Open problem: optimal calculator keyboard layout based on key usage statistics (/thread-10811.html) |
Open problem: optimal calculator keyboard layout based on key usage statistics - emece67 - 05-28-2018 01:27 PM Hi all, Motivated by some discussions about the key layout of the, maybe, future wp43s, I decided to measure the relative usage frequencies of the keys in a calculator. For that purpose, I modified the source code of the wp34s Qt emulator for it to keep a record, on disk, of the key usage. After a few days of not using any "real" machine, but only the emulator, I do have now some preliminary numbers. As I'm only interested in the basic layout of the machine (that is: number input plus basic ops, this translates to digits, decimal point, CHS, ENTER, EEX, 4 basic ops, backspace, SWAP, down stack & EXIT), I'll only show the numbers for such keys. They are (key: % usage)
Based upon this frequencies, what do you think will be an "optimal" keyboard layout, minimizing the finger flight time. Some rules to be obeyed:
Some other interesting data and open questions:
Thoughts and layout proposals? RE: Open problem: optimal calculator keyboard layout based on key usage statistics - ttw - 05-28-2018 01:40 PM I don't know about calculators, but in typing, the backspace seems to be the most common key (not counting the alphabet and spacebar.) Digit key frequencies do not follow Benford's Law as that only applies to the first digit. This doesn't matter too much as either calculator order (as you suggest) or the phone order are about the only two that need no thought from the user. Making "Enter" double sized is good. Another thing I would like is to have separate "Backspace" and "Delete" keys. I find that during editing (words or numbers or codes) I often end up wanting to delete the character under the cursor about as often as that preceding the cursor. If wrong, most calculators take two keystrokes, either a shift key and the Delete (or Backspace) or an arrow key to move to the position that needs no shift. The HP 48, 49, 50 series seems to get some advantage by having the function keys operate from a menu that one can program. I use this often to assign either programs or things that take lots of keystrokes to find to my custom menus. Working with big integers uses things like Mod and Divide with Remainder but working with reals uses other things like Round or Truncate, etc., for example. RE: Open problem: optimal calculator keyboard layout based on key usage statistics - rprosperi - 05-28-2018 02:08 PM (05-28-2018 01:27 PM)emece67 Wrote: Motivated by some discussions about the key layout of the, maybe, future wp43s, I decided to measure the relative usage frequencies of the keys in a calculator... To understand the meaning and applicability of this data, can you explain how you "used" the emulator once you had it instrumented to log key use, e.g. for what applications? For example, both EEX and CHS were used very little, so it seems there were primarily positive, relatively small numbers; different applications would likely change these numbers significantly. Thanks for the effort to make the mods, then collect and share the results. Interesting stuff. RE: Open problem: optimal calculator keyboard layout based on key usage statistics - emece67 - 05-28-2018 10:28 PM (05-28-2018 02:08 PM)rprosperi Wrote: To understand the meaning and applicability of this data, can you explain how you "used" the emulator once you had it instrumented to log key use, e.g. for what applications? Everyday use at home and at work (EE). I suppose it means not much very high/low numbers (specially at home), so light usage of EEX and, also, not much negative numbers. The big total of keystrokes was around 7000. What surprised me was the high number of / against *, - and +. I also didn't expect at all + being the less used basic operation. Another unexpected (to me) result was the very low use of the stack down key. Concerning the Benford's law, I still think that the measured digit frequencies are related to it. At least, it is likely that the first digit of each entered number distributes according to it, so the final measured frequencies must have some resemblance to this distribution. Even more when, as it is my case, I do not use to enter numbers with much digits, but as much as 4 to 6 digits. Does anybody have a clue about how to locate an "optimal" key layout from frequencies. My first approach was to compute the centroid of the 1-9 digits (from the "standard" layout and taking into account the frequencies of each digit), and then add the next most-frequent key as near as possible to that centroid. Compute the new centroid and iterate until key exhaustion. But I'm not sure at all that such naïve approach ensures minimal finger flight time. Regards. Edit: well, the ratio between EEX and ENTER keystrokes was about 1:7, so I think that approximately one of each seven entered numbers needed and exponent. Not sure is such is exactly a lower than expected ratio. EDIT 2: There were other keys with high keystroke counts that I have not included in the listing as I do not think about them as "basic" keys. They were: OFF (2.04 %), Sigma+ (1.02 %. Yes, I was doing some regression analysis) and 1/x (0.91 %). RE: Open problem: optimal calculator keyboard layout based on key usage statistics - brickviking - 05-28-2018 11:17 PM Things I've found somewhat true after playing for a while with calculators:
(Post 234) RE: Open problem: optimal calculator keyboard layout based on key usage statistics - Gene - 05-28-2018 11:45 PM Funny to me that you used / more than 4 6 7 or 8. :-) Gene RE: Open problem: optimal calculator keyboard layout based on key usage statistics - ijabbott - 05-29-2018 05:53 PM Personally, I tend to use the EXIT key to enter numbers on RPN calculators (on those that have an EXIT key, such as HP-42S) rather than the ENTER key. Does that make me weird? RE: Open problem: optimal calculator keyboard layout based on key usage statistics - rprosperi - 05-29-2018 06:04 PM (05-29-2018 05:53 PM)ijabbott Wrote: Personally, I tend to use the EXIT key to enter numbers on RPN calculators (on those that have an EXIT key, such as HP-42S) rather than the ENTER key. Does that make me weird? No, but asking this does make you funny. Thanks for the laugh... RE: Open problem: optimal calculator keyboard layout based on key usage statistics - ttw - 05-29-2018 08:45 PM I suppose that using "EXIT" to remove one number calls for using "EXEUNT" to remove a set of numbers. RE: Open problem: optimal calculator keyboard layout based on key usage statistics - Jaco@cocoon-creations.com - 01-26-2019 08:25 AM (05-29-2018 05:53 PM)ijabbott Wrote: Personally, I tend to use the EXIT key to enter numbers on RPN calculators (on those that have an EXIT key, such as HP-42S) rather than the ENTER key. Does that make me weird? I never knew. This is handy! Definitely not weird. J RE: Open problem: optimal calculator keyboard layout based on key usage statistics - RMollov - 01-27-2019 04:42 AM (05-29-2018 05:53 PM)ijabbott Wrote: Personally, I tend to use the EXIT key to enter numbers on RPN calculators (on those that have an EXIT key, such as HP-42S) rather than the ENTER key. Does that make me weird?I only recently found about that and I love / use it massively now on the DM42. RE: Open problem: optimal calculator keyboard layout based on key usage statistics - BobVA - 01-27-2019 03:44 PM (05-28-2018 11:17 PM)brickviking Wrote: You know, I spent an embarrassing amount of time looking for the pi key on my WP-31 shortly after I assembled it... The results were interesting. It would tend to explain the number of vintage Voyagers I've seen with worn "0" keys. And not just the 12c's, where it could be argued that financial types (real estate agents, loan officers) use a lot of zeros when making rough calculations about loan payments, etc. RE: Open problem: optimal calculator keyboard layout based on key usage statistics - Allen - 01-28-2019 01:48 AM Possibly useless idea: Surely with all the ROM Byte code we have in such masterpieces as the PPC rom, we could disassemble the ROMS in the library and run statistics on what keys would have to be pressed to re-type all the useful programs? I realize that might result in some unnecessary entries like END,GTO, and LBLs (or some of the ALPHA strings related to program flow/execution) that might not actually be a part of every day use, but surely a good percentage of each ROM would actually represent the kind of calculations people do manually and would want direct keys for? |