Closed christianbundy closed 8 years ago
This is awesome. I was talking with someone about this early this AM on Twitter. Was going to do a PR but glad you beat me to it (I wasn't planning the nice table). Thanks for really improving the demo
@willy-b Hell yeah, glad you got something out of it.
This PR makes two changes:
m.f
andm.d
are equal (resolves #4)m.f
andm.d
are unequal (resolves #5)It's now very improbable for "malicious" patterns like
dddddffffffdffffddfffdfdfffdddff
to hit 0%. I ran the new algorithm against the above pattern, and these were my results:It definitely isn't perfect, but a mean of 34% is a step up from 0%. It seems to work well with
npm test
, but please let me know if you notice anything funky. Cheers!