Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for kn (0.2 sec)

  1. src/main/java/jcifs/smb1/util/DES.java

                }
                for ( j = 0; j < 24; ++j ) {
                    if ( pcr[pc2[j]] != 0 )
                        kn[m] |= bigbyte[j];
                    if ( pcr[pc2[j+24]] != 0 )
                        kn[n] |= bigbyte[j];
                }
            }
            cookey( kn, KnL );
        }
    
        private void cookey( int[] raw, int KnL[] )     {
            int raw0, raw1;
            int rawi, KnLi;
            int i;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 21.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/BloomFilter.java

      // Cheat sheet:
      //
      // m: total bits
      // n: expected insertions
      // b: m/n, bits per insertion
      // p: expected false positive probability
      //
      // 1) Optimal k = b * ln2
      // 2) p = (1 - e ^ (-kn/m))^k
      // 3) For optimal k: p = 2 ^ (-k) ~= 0.6185^b
      // 4) For optimal k: m = -nlnp / ((ln2) ^ 2)
    
      /**
       * Computes the optimal k (number of hashes per element inserted in Bloom filter), given the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top