test_class.file: ml/streaminer/src/test/java/org/streaminer/stream/cardinality/TestAdaptiveCounting.java
test_class.identifier: TestAdaptiveCounting
test_case.body: @Test
      public void testRho()
      {
          assertEquals(17, LogLog.rho(0, 16));
          assertEquals(16, LogLog.rho(1, 16));
          assertEquals(15, LogLog.rho(2, 16));
          assertEquals(1, LogLog.rho(0x00008000, 16));
  
          assertEquals(23, LogLog.rho(0, 10));
          assertEquals(22, LogLog.rho(1, 10));
          assertEquals(21, LogLog.rho(2, 10));
          assertEquals(1, LogLog.rho(0x00200000, 10));
      }
test_case.class_method_signature: TestAdaptiveCounting.testRho()
test_case.full_signature: @Test public void testRho()
test_case.identifier: testRho
test_case.invocations: assertEquals rho assertEquals rho assertEquals rho assertEquals rho assertEquals rho assertEquals rho assertEquals rho assertEquals rho
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRho()
focal_class.declarator: b_e
focal_class.modifier: protected
focal_class.original_string: protected int b_e;
focal_class.type: int
focal_class.var_name: b_e
focal_class.declarator: B_s = 0.051
focal_class.modifier: protected final
focal_class.original_string: protected final double B_s = 0.051;
focal_class.type: double
focal_class.var_name: B_s
focal_class.file: ml/streaminer/src/main/java/org/streaminer/stream/cardinality/AdaptiveCounting.java
focal_class.identifier: AdaptiveCounting
focal_class.class_method_signature: AdaptiveCounting.AdaptiveCounting(int k)
focal_class.full_signature: public  AdaptiveCounting(int k)
focal_class.identifier: AdaptiveCounting
focal_class.modifiers: public
focal_class.parameters: (int k)
focal_class.signature:  AdaptiveCounting(int k)
focal_class.class_method_signature: AdaptiveCounting.AdaptiveCounting(byte[] M)
focal_class.full_signature: public  AdaptiveCounting(byte[] M)
focal_class.identifier: AdaptiveCounting
focal_class.modifiers: public
focal_class.parameters: (byte[] M)
focal_class.signature:  AdaptiveCounting(byte[] M)
focal_class.class_method_signature: AdaptiveCounting.offer(Object o)
focal_class.full_signature: @Override public boolean offer(Object o)
focal_class.identifier: offer
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean offer(Object o)
focal_class.class_method_signature: AdaptiveCounting.cardinality()
focal_class.full_signature: @Override public long cardinality()
focal_class.identifier: cardinality
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long cardinality()
focal_class.class_method_signature: AdaptiveCounting.rho(long x, int k)
focal_class.full_signature: protected static byte rho(long x, int k)
focal_class.identifier: rho
focal_class.modifiers: protected static
focal_class.parameters: (long x, int k)
focal_class.return: byte
focal_class.signature: byte rho(long x, int k)
focal_class.class_method_signature: AdaptiveCounting.merge(IRichCardinality... estimators)
focal_class.full_signature: @Override public IRichCardinality merge(IRichCardinality... estimators)
focal_class.identifier: merge
focal_class.modifiers: @Override public
focal_class.parameters: (IRichCardinality... estimators)
focal_class.return: IRichCardinality
focal_class.signature: IRichCardinality merge(IRichCardinality... estimators)
focal_class.class_method_signature: AdaptiveCounting.mergeEstimators(LogLog... estimators)
focal_class.full_signature: public static AdaptiveCounting mergeEstimators(LogLog... estimators)
focal_class.identifier: mergeEstimators
focal_class.modifiers: public static
focal_class.parameters: (LogLog... estimators)
focal_class.return: AdaptiveCounting
focal_class.signature: AdaptiveCounting mergeEstimators(LogLog... estimators)
focal_class.superclass: extends LogLog
focal_method.body: protected static byte rho(long x, int k) {
          return (byte) (Long.numberOfLeadingZeros((x << k) | (1 << (k - 1))) + 1);
      }
focal_method.class_method_signature: AdaptiveCounting.rho(long x, int k)
focal_method.full_signature: protected static byte rho(long x, int k)
focal_method.identifier: rho
focal_method.invocations: numberOfLeadingZeros
focal_method.modifiers: protected static
focal_method.parameters: (long x, int k)
focal_method.return: byte
focal_method.signature: byte rho(long x, int k)