numenta/nupic.research — pull request #112 by scottpurdy (2014-12-31 18:28:57+00:00)
Title: Adds subsampling option and false negative function for checking stored vectors with noise

Noise specifies total added and removed bits. Number of bits added has range [0, noise] with equal chance. Number of bits removed is `noise-numAdded`. Example output for new false negative function:

```
Simulations running. Please be patient. Think about
all the things you have to be grateful for.

0 trials completed out of 50000
10000 trials completed out of 50000
20000 trials completed out of 50000
30000 trials completed out of 50000
40000 trials completed out of 50000
Classification: Probability of false negative for n=1024, M=100, w=30, w'=20, noise=5
Theta = 1 prob=0 +/- 0
Theta = 2 prob=0 +/- 0
Theta = 3 prob=0 +/- 0
Theta = 4 prob=0 +/- 0
Theta = 5 prob=0 +/- 0
Theta = 6 prob=0 +/- 0
Theta = 7 prob=0 +/- 0
Theta = 8 prob=0 +/- 0
Theta = 9 prob=0 +/- 0
Theta = 10 prob=0 +/- 0
Theta = 11 prob=0 +/- 0
Theta = 12 prob=0 +/- 0
Theta = 13 prob=0 +/- 0
Theta = 14 prob=0 +/- 0
Theta = 15 prob=0 +/- 0
Theta = 16 prob=0.01842 +/- 0.00117863
Theta = 17 prob=0.106 +/- 0.00269832
Theta = 18 prob=0.2816 +/- 0.00394249
Theta = 19 prob=0.51148 +/- 0.00438154
Theta = 20 prob=0.7555 +/- 0.00376728
```