Chapter 10 Summary
To an extent, I had an idea that data should be valid. It almost reminds me of Java functions. Arguments in said functions have to be valid, e.g. in this function:
public void setIntValue(int newValue) {
/*
* I have no predefined values, and this function assumes that a variable exists. Sorry!
* Not that you are concerned, but it would set a variable to newValue.
*/
}
In order for the function above to not cause an error, newValue must be valid data. Valid data would be any integer, or argument that would be construed as an "int". Examples would include 0, 7, 15, which would allow the function to, well, function. newValue cannot be invalid data, like false, 7.1, "completely usable int", or "5". For a more statistical-relevant example, I am using Excel to make data in spreadsheets. Similar to Java, functions use parameters to return results, all of which require different types of arguments depending, but they require valid data, or an error (visually a whole bunch of hashtags) appears across the cell.
I have really only ever encountered the Fundamental Counting Theorem, FCT, once and that was in middle school when I was learning about probability. Since then, I have only tried to use it while not understanding its meaning out of sporadic curiosity when trying to figure out how many different probabilities can exist, which, besides potentially helping me find out the chance of something, has been fairly obsolete.
Pattern recognition is something I thought I was well-versed in, but based on this definition, I do not really know. Being who I am, it can be easy for me to understand patterns. Actually, I used something like this when trying to program the display of a health color for every instance of HP from 0% to 100%. I needed the help of a graphing calculator for a visual and to better understand how I would do it.
First, I had to understand what I was going for. Redder as health gets closer 0%, green for 100%, and yellow for in-between. Provided the R and G values were between 0.0 and 1.0 (the program uses that range rather than 0 to 255) and B was always 0.0, I then took to the calculator to get a visual for better understanding of how I would accomplish this. Eventually, I found that R would be determined with the formula
< | A | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | >
Back