The Bride of the First House (bride) wrote,
The Bride of the First House
bride

Friday One - Current Thought

weather: bright cloudy
outside: 17°C
mood: workie
On the inauguration of fridayfiver:

1. Describe one thought currently on your mind:

If 0% probability maps to a '0' rating and 1% through 100% is normalized over '1' to '9', then your algorithm should be: $SCL = 1 + ceiling(trunc($PROB)/11.11) and not "12.5" like your original code says.

Also, you should check for a percentage outside of the 0%-100% range (ie. -23%, 398369% and "blah%"). I'm thinking the alphanumeric will get converted to 0% anyway because the string to number conversion will fail, leaving you with '0', but please make sure. Thanks.

Okay, that's two thoughts. But I'm in the midst of talking to my Dev Guy. I haven't even run anything to test yet. This is just from code inspection. It's so easy to forget that when you're converting from cardinality to dimensionality, it's (y-x+1). I'm a bit worried about the alphanumeric though. Depending on the default return value on failure and not doing something specifically is dangerous.

My answers to all the other questions are boring. =P

Tags: open-ended surveys
Subscribe

  • Blast from the Past!

    weather : sunny outside : 17°C mood : ... Heh, it'll be interesting to see who reads this journal anymore =) The…

  • My Hermit Life

    weather : sunny outside : 24°C mood : ... Holy tap-dancing Christ on a pogo stick, it's been a really long time.…

  • Latest Nail Art

    weather : sunny outside : 21°C mood : ... I think I understand why I like nail art so much. I'm a Business Analyst by…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment