My Math Forum Number sets and creating a relationship

 Applied Math Applied Math Forum

 August 21st, 2012, 09:17 PM #1 Newbie   Joined: Aug 2012 Posts: 11 Thanks: 0 Number sets and creating a relationship Firstly, My name is Tbillion and i am a mathaholic.... actually i just use it for programming. I have come up to this problem a couple of times and i always find myself looking,(like charles darwin) for the missing link. technical. I have a chart, it has set numbers and measured values. example N R G B SUM (RGB) 0 255 255 50 560 0.031 254.139 254.499 49.633 558.271 0.062 253.278 253.998 49.266 556.542 0.093 252.417 253.497 48.899 554.813 0.124 251.556 252.996 48.532 553.084 0.155 250.695 252.495 48.165 551.355 0.186 249.834 251.994 47.798 549.626 0.217 248.973 251.493 47.431 547.897 in my use i have a program that measures the real world for values R G B, since any R G or B value can come up the same as a previous R G B (R number same as another R number) it takes the sum of the numbers to differentiate. I need to be able to measure R G B and ad them up and determine from the sum of R G B which N it is or is closest to. The difference between the sum on average is 1.25 and the difference between N is 0.031 if this is of use i cannot figure out how to use it. the above is just a partial table this is the complete table: Code: 0 255 255 50 560 0.031 254.139 254.499 49.633 558.271 0.062 253.278 253.998 49.266 556.542 0.093 252.417 253.497 48.899 554.813 0.124 251.556 252.996 48.532 553.084 0.155 250.695 252.495 48.165 551.355 0.186 249.834 251.994 47.798 549.626 0.217 248.973 251.493 47.431 547.897 0.248 248.112 250.992 47.064 546.168 0.279 247.251 250.491 46.697 544.439 0.31 246.39 249.99 46.33 542.71 0.341 245.529 249.489 45.963 540.981 0.372 244.668 248.988 45.596 539.252 0.403 243.807 248.487 45.229 537.523 0.434 242.946 247.986 44.862 535.794 0.465 242.085 247.485 44.495 534.065 0.496 241.224 246.984 44.128 532.336 0.527 240.363 246.483 43.761 530.607 0.558 239.502 245.982 43.394 528.878 0.589 238.641 245.481 43.027 527.149 0.62 237.78 244.98 42.66 525.42 0.651 236.919 244.479 42.293 523.691 0.682 236.058 243.978 41.926 521.962 0.713 235.197 243.477 41.559 520.233 0.744 234.336 242.976 41.192 518.504 0.775 233.475 242.475 40.825 516.775 0.806 232.614 241.974 40.458 515.046 0.837 231.753 241.473 40.091 513.317 0.868 230.892 240.972 39.724 511.588 0.899 230.031 240.471 39.357 509.859 0.93 229.17 239.97 38.99 508.13 0.961 228.309 239.469 38.623 506.401 0.992 227.448 238.968 38.256 504.672 1.023 226.587 238.467 37.889 502.943 1.054 225.726 237.966 37.522 501.214 1.085 224.865 237.465 37.155 499.485 1.116 224.004 236.964 36.788 497.756 1.147 223.143 236.463 36.421 496.027 1.178 222.282 235.962 36.054 494.298 1.209 221.421 235.461 35.687 492.569 1.24 220.56 234.96 35.32 490.84 1.271 219.699 234.459 34.953 489.111 1.302 218.838 233.958 34.586 487.382 1.333 217.977 233.457 34.219 485.653 1.364 217.116 232.956 33.852 483.924 1.395 216.255 232.455 33.485 482.195 1.426 215.394 231.954 33.118 480.466 1.457 214.533 231.453 32.751 478.737 1.488 213.672 230.952 32.384 477.008 1.519 212.811 230.451 32.017 475.279 1.55 211.95 229.95 31.65 473.55 1.581 211.089 229.449 31.283 471.821 1.612 210.228 228.948 30.916 470.092 1.643 209.367 228.447 30.549 468.363 1.674 208.506 227.946 30.182 466.634 1.705 207.645 227.445 29.815 464.905 1.736 206.784 226.944 29.448 463.176 1.767 205.923 226.443 29.081 461.447 1.798 205.062 225.942 28.714 459.718 1.829 204.201 225.441 28.347 457.989 1.86 203.34 224.94 27.98 456.26 1.891 202.479 224.439 27.613 454.531 1.922 201.618 223.938 27.246 452.802 1.953 200.757 223.437 26.879 451.073 1.984 199.896 222.936 26.512 449.344 2.015 199.035 222.435 26.145 447.615 2.046 198.174 221.934 25.778 445.886 2.077 197.313 221.433 25.411 444.157 2.108 196.452 220.932 25.044 442.428 2.139 195.591 220.431 24.677 440.699 2.17 194.73 219.93 24.31 438.97 2.201 193.869 219.429 23.943 437.241 2.232 193.008 218.928 23.576 435.512 2.263 192.147 218.427 23.209 433.783 2.294 191.286 217.926 22.842 432.054 2.325 190.425 217.425 22.475 430.325 2.356 189.564 216.924 22.108 428.596 2.387 188.703 216.423 21.741 426.867 2.418 187.842 215.922 21.374 425.138 2.449 186.981 215.421 21.007 423.409 2.48 186.12 214.92 20.64 421.68 2.511 185.259 214.419 20.273 419.951 2.542 184.398 213.918 19.906 418.222 2.573 183.537 213.417 19.539 416.493 2.604 182.676 212.916 19.172 414.764 2.635 181.815 212.415 18.805 413.035 2.666 180.954 211.914 18.438 411.306 2.697 180.093 211.413 18.071 409.577 2.728 179.232 210.912 17.704 407.848 2.759 178.371 210.411 17.337 406.119 2.79 177.51 209.91 16.97 404.39 2.821 176.649 209.409 16.603 402.661 2.852 175.788 208.908 16.236 400.932 2.883 174.927 208.407 15.869 399.203 2.914 174.066 207.906 15.502 397.474 2.945 173.205 207.405 15.135 395.745 2.976 172.344 206.904 14.768 394.016 3.007 171.483 206.403 14.401 392.287 3.038 170.622 205.902 14.034 390.558 3.069 169.761 205.401 13.667 388.829 3.1 168.9 204.9 13.3 387.1 3.131 168.039 204.399 12.933 385.371 3.162 167.178 203.898 12.566 383.642 3.193 166.317 203.397 12.199 381.913 3.224 165.456 202.896 11.832 380.184 3.255 164.595 202.395 11.465 378.455 3.286 163.734 201.894 11.098 376.726 3.317 162.873 201.393 10.731 374.997 3.348 162.012 200.892 10.364 373.268 3.379 161.151 200.391 9.997 371.539 3.41 160.29 199.89 9.63 369.81 3.441 159.429 199.389 9.263 368.081 3.472 158.568 198.888 8.896 366.352 3.503 157.707 198.387 8.529 364.623 3.534 156.846 197.886 8.162 362.894 3.565 155.985 197.385 7.795 361.165 3.596 155.124 196.884 7.428 359.436 3.627 154.263 196.383 7.061 357.707 3.658 153.402 195.882 6.694 355.978 3.689 152.541 195.381 6.327 354.249 3.72 151.68 194.88 5.96 352.52 3.751 150.819 194.379 5.593 350.791 3.782 149.958 193.878 5.226 349.062 3.813 149.097 193.377 4.859 347.333 3.844 148.236 192.876 4.492 345.604 3.875 147.375 192.375 4.125 343.875 3.906 146.514 191.874 3.758 342.146 3.937 145.653 191.373 3.391 340.417 3.968 144.792 190.872 3.024 338.688 3.999 143.931 190.371 3.602 337.904 4.03 143.07 189.87 4.18 337.12 4.061 142.209 189.369 4.758 336.336 4.092 141.348 188.868 5.336 335.552 4.123 140.487 188.367 5.914 334.768 4.154 139.626 187.866 6.492 333.984 4.185 138.765 187.365 7.07 333.2 4.216 137.904 186.864 7.648 332.416 4.247 137.043 186.363 8.226 331.632 4.278 136.182 185.862 8.804 330.848 4.309 135.321 185.361 9.382 330.064 4.34 134.46 184.86 9.96 329.28 4.371 133.599 184.359 10.538 328.496 4.402 132.738 183.858 11.116 327.712 4.433 131.877 183.357 11.694 326.928 4.464 131.016 182.856 12.272 326.144 4.495 130.155 182.355 12.85 325.36 4.526 129.294 181.854 13.428 324.576 4.557 128.433 181.353 14.006 323.792 4.588 127.572 180.852 14.584 323.008 4.619 126.711 180.351 15.162 322.224 4.65 125.85 179.85 15.74 321.44 4.681 124.989 179.349 16.318 320.656 4.712 124.128 178.848 16.896 319.872 4.743 123.267 178.347 17.474 319.088 4.774 122.406 177.846 18.052 318.304 4.805 121.545 177.345 18.63 317.52 4.836 120.684 176.844 19.208 316.736 4.867 119.823 176.343 19.786 315.952 4.898 118.962 175.842 20.364 315.168 4.929 118.101 175.341 20.942 314.384 4.96 117.24 174.84 21.52 313.6 4.991 116.379 174.339 22.098 312.816 5.022 115.518 173.838 22.676 312.032 5.053 114.657 173.337 23.254 311.248 5.084 113.796 172.836 23.832 310.464 5.115 112.935 172.335 24.41 309.68 5.146 112.074 171.834 24.988 308.896 5.177 111.213 171.333 25.566 308.112 5.208 110.352 170.832 26.144 307.328 5.239 109.491 170.331 26.722 306.544 5.27 108.63 169.83 27.3 305.76 5.301 107.769 169.329 27.878 304.976 5.332 106.908 168.828 28.456 304.192 5.363 106.047 168.327 29.034 303.408 5.394 105.186 167.826 29.612 302.624 5.425 104.325 167.325 30.19 301.84 5.456 103.464 166.824 30.768 301.056 5.487 102.603 166.323 31.346 300.272 5.518 101.742 165.822 31.924 299.488 5.549 100.881 165.321 32.502 298.704 5.58 100.02 164.82 33.08 297.92 5.611 99.159 164.319 33.658 297.136 5.642 98.298 163.818 34.236 296.352 5.673 97.437 163.317 34.814 295.568 5.704 96.576 162.816 35.392 294.784 5.735 95.715 162.315 35.97 294 5.766 94.854 161.814 36.548 293.216 5.797 93.993 161.313 37.126 292.432 5.828 93.132 160.812 37.704 291.648 5.859 92.271 160.311 38.282 290.864 5.89 91.41 159.81 38.86 290.08 5.921 90.549 159.309 39.438 289.296 5.952 89.688 158.808 40.016 288.512 5.983 88.827 158.307 40.594 287.728 6.014 87.966 157.806 41.172 286.944 6.045 87.105 157.305 41.75 286.16 6.076 86.244 156.804 42.328 285.376 6.107 85.383 156.303 42.906 284.592 6.138 84.522 155.802 43.484 283.808 6.169 83.661 155.301 44.062 283.024 6.2 82.8 154.8 44.64 282.24 6.231 81.939 154.299 45.218 281.456 6.262 81.078 153.798 45.796 280.672 6.293 80.217 153.297 46.374 279.888 6.324 79.356 152.796 46.952 279.104 6.355 78.495 152.295 47.53 278.32 6.386 77.634 151.794 48.108 277.536 6.417 76.773 151.293 48.686 276.752 6.448 75.912 150.792 49.264 275.968 6.479 75.051 150.291 49.842 275.184 6.51 74.19 149.79 50.42 274.4 6.541 73.329 149.289 50.998 273.616 6.572 72.468 148.788 51.576 272.832 6.603 71.607 148.287 52.154 272.048 6.634 70.746 147.786 52.732 271.264 6.665 69.885 147.285 53.31 270.48 6.696 69.024 146.784 53.888 269.696 6.727 68.163 146.283 54.466 268.912 6.758 67.302 145.782 55.044 268.128 6.789 66.441 145.281 55.622 267.344 6.82 65.58 144.78 56.2 266.56 6.851 64.719 144.279 56.778 265.776 6.882 63.858 143.778 57.356 264.992 6.913 62.997 143.277 57.934 264.208 6.944 62.136 142.776 58.512 263.424 6.975 61.275 142.275 59.09 262.64 7.006 60.414 141.774 59.668 261.856 7.037 59.553 141.273 60.246 261.072 7.068 58.692 140.772 60.824 260.288 7.099 57.831 140.271 61.402 259.504 7.13 56.97 139.77 61.98 258.72 7.161 56.109 139.269 62.558 257.936 7.192 55.248 138.768 63.136 257.152 7.223 54.387 138.267 63.714 256.368 7.254 53.526 137.766 64.292 255.584 7.285 52.665 137.265 64.87 254.8 7.316 51.804 136.764 65.448 254.016 7.347 50.943 136.263 66.026 253.232 7.378 50.082 135.762 66.604 252.448 7.409 49.221 135.261 67.182 251.664 7.44 48.36 134.76 67.76 250.88 7.471 47.499 134.259 68.338 250.096 7.502 46.638 133.758 68.916 249.312 7.533 45.777 133.257 69.494 248.528 7.564 44.916 132.756 70.072 247.744 7.595 44.055 132.255 70.65 246.96 7.626 43.194 131.754 71.228 246.176 7.657 42.333 131.253 71.806 245.392 7.688 41.472 130.752 72.384 244.608 7.719 40.611 130.251 72.962 243.824 7.75 39.75 129.75 73.54 243.04 7.781 38.889 129.249 74.118 242.256 7.812 38.028 128.748 74.696 241.472 7.843 37.167 128.247 75.274 240.688 7.874 36.306 127.746 75.852 239.904 7.905 35.445 127.245 76.43 239.12 7.936 34.584 126.744 77.008 238.336 7.967 33.723 126.243 77.586 237.552 7.998 32.862 125.742 78.164 236.768 8.029 32.001 125.241 78.742 235.984 8.06 31.14 124.74 79.32 235.2 8.091 30.279 124.239 79.898 234.416 8.122 29.418 123.738 80.476 233.632 8.153 28.557 123.237 81.054 232.848 8.184 27.696 122.736 81.632 232.064 8.215 26.835 122.235 82.21 231.28 8.246 25.974 121.734 82.788 230.496 8.277 25.113 121.233 83.366 229.712 8.308 24.252 120.732 83.944 228.928 8.339 23.391 120.231 84.522 228.144 8.37 22.53 119.73 85.1 227.36 8.401 21.669 119.229 85.678 226.576 8.432 20.808 118.728 86.256 225.792 8.463 19.947 118.227 86.834 225.008 8.494 19.086 117.726 87.412 224.224 8.525 18.225 117.225 87.99 223.44 8.556 17.364 116.724 88.568 222.656 8.587 16.503 116.223 89.146 221.872 8.618 15.642 115.722 89.724 221.088 8.649 14.781 115.221 90.302 220.304 8.68 13.92 114.72 90.88 219.52 8.711 13.059 114.219 91.458 218.736 8.742 12.198 113.718 92.036 217.952 8.773 11.337 113.217 92.614 217.168 8.804 10.476 112.716 93.192 216.384 8.835 9.615 112.215 93.77 215.6 8.866 8.754 111.714 94.348 214.816 8.897 7.893 111.213 94.926 214.032 8.928 7.032 110.712 95.504 213.248 8.959 6.171 110.211 96.082 212.464 8.99 5.31 109.71 96.66 211.68 9.021 4.449 109.209 97.238 210.896 9.052 3.588 108.708 97.816 210.112 9.083 2.727 108.207 98.394 209.328 9.114 1.866 107.706 98.972 208.544 9.145 1.005 107.205 99.55 207.76 there has to be a way to figure a relation. i just cant see it. also in the future i may need to extrapolate beyond and N of 9.145, if i find a calculation or relation i should not need a table.
 August 22nd, 2012, 01:48 AM #2 Senior Member   Joined: Aug 2012 Posts: 229 Thanks: 3 Re: Number sets and creating a relationship Hey tbillion. You might be interested in looking at this: http://en.wikipedia.org/wiki/Central_limit_theorem This is a good visual explanation of what is going on: http://www.statisticalengineering.com/c ... heorem.htm
 August 23rd, 2012, 12:02 PM #3 Newbie   Joined: Aug 2012 Posts: 11 Thanks: 0 Re: Number sets and creating a relationship ok, if i read all of that correctly, then i think it only applies to the combination of rgb but im not a mathematician nor a math major so i there a dumbed up version of this answer?even if i apply the information from the wiki i can extrapolate rgb from R G B but i cannot extrapolate N. Unless i missed something.
 August 23rd, 2012, 08:53 PM #4 Global Moderator     Joined: Nov 2006 From: UTC -5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms Re: Number sets and creating a relationship I don't really understand the question.
 August 23rd, 2012, 09:30 PM #5 Newbie   Joined: Aug 2012 Posts: 11 Thanks: 0 Re: Number sets and creating a relationship a picture shows an image of a man whose name is both travis and jacob. a vial contains a fluid thats human numeric value is .031, and computer numeric value is 558.271 is there a way to mathematically figure the next human numeric value from only knowing the computer number? the program i am designing will know the sum of numbers R G B (relates to supplied table.) but the use needs to know the N. how would i create an equation that will be able to generate N from the sum of R G B.
 August 23rd, 2012, 10:09 PM #6 Newbie   Joined: Aug 2012 Posts: 11 Thanks: 0 Re: Number sets and creating a relationship To be real clear this is not really statistical information... After much youtube i dont think that Central limit theorem has much to do with this, mainly because there is no deviation. I can draw up the averages all day long ... being (RGB) = 349.75 and N being 4.57, but there is no deviation as this is non statistical information. these are real samples for the actual values. kinda like thee is no deviation from a combo lock code. Im not looking for the probability that something will happen i am merely looking to extrapolate mathematically what N is from SUM(RGB)
August 24th, 2012, 05:06 AM   #7
Global Moderator

Joined: Nov 2006
From: UTC -5

Posts: 16,046
Thanks: 938

Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms
Re: Number sets and creating a relationship

Quote:
 Originally Posted by tbillion a vial contains a fluid thats human numeric value is .031, and computer numeric value is 558.271
So you have a bunch of these pairs of numbers, and you want to do... what with them exactly?

My best guess is you get an RGB triplet, compute a value from that, and then look up that value on the list. I guess you want to take the closest match in some sense?

August 24th, 2012, 09:38 AM   #8
Newbie

Joined: Aug 2012

Posts: 11
Thanks: 0

Re: Number sets and creating a relationship

Yes i have an RGB triplet, but i am trying to avoid the lookup table like the plague, due to memory limitations, and speed limitations.

if i use a lookup table for all the elements one could ever possibly need then the array would be comprised of 1024 or more elements each element is 2bytes, for just this one test, seeing as there is 10-15 tests I am talking about you are looking at 30kB of just table store information not to mention code space for parsing code which will get more complicated as the table gets larger.

speed will depend on where i store the information if i have to access it over I2C then it will be slower, but as the size of the table grows an eeprom will become the only viable option.

Which is why i wanted to see if there was any way to calculate the N(0.031) from the rgb sum (558.271) or even the rgb average.

Quote:
 So you have a bunch of these pairs of numbers, and you want to do... what with them exactly?
Display to the user that based on the color the item is N. because the user can understand N values and how they relate tot he real world and the hardware understands RGB.

 August 24th, 2012, 11:40 AM #9 Global Moderator     Joined: Nov 2006 From: UTC -5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms Re: Number sets and creating a relationship I still don't understand what you're doing well enough to give advice. If anyone else understands, feel free to give an explanation.
 August 24th, 2012, 08:33 PM #10 Newbie   Joined: Aug 2012 Posts: 11 Thanks: 0 Re: Number sets and creating a relationship is there an equation or system that will give these results: 0.031 = 558.271 0.062 = 556.542 0.093 = 554.813 0.124 = 553.084 0.155 = 551.355 0.186 = 549.626 0.217 = 547.897 0.248 = 546.168 0.279 = 544.439 0.31 = 542.71 0.341 = 540.981 so on and so forth all the way down. I cannot give the complete details because i am seeking a patent for the idea as it is. this is the same as saying; red = $ff$00 \$00 if you show a user the hex value they wouldnt know what it was you show them the word red and they know what it is same thing. feel free to ask questions and ill do my best to answer

 Tags creating, number, relationship, sets

 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post farismadi Algebra 2 July 21st, 2013 07:19 AM rokr32 Algebra 13 October 2nd, 2011 01:01 PM hoyy1kolko Algebra 4 March 15th, 2011 07:44 AM hoyy1kolko Algebra 4 March 13th, 2011 12:00 AM farismadi Abstract Algebra 0 December 31st, 1969 04:00 PM

 Contact - Home - Forums - Cryptocurrency Forum - Top