Accumulate log scores using a kernel. More...
Public Member Functions | |
RBKAccumulator (int asize=ACCUMULATOR_SIZE) | |
Construct the Kernel-based accumulator. | |
void | assignConstants (float sigma, float theta, float power) |
Assign the kernel function parameters. |
Accumulate log scores using a kernel.
This class is used to accumulate document scores using a selected kernel function. The combining of the kernel vector elements is to be done before providing the accumulator with the each element of two vectors combined. For example, the radial basis function vectors are combined by taking the difference between the two, the polynomial kernel vectors are combined by multiplying the elements. Once provided to the accumulator, the vector is aggrated into its kernel value. The spectific kernel is chosen by defining either KERNEL_RBK or KERNEL_POLYNOMIAL in the localdef.h file. The kernel parameters are also set in localdef.h with KERNEL_SIGMA, KERNEL_THETA, and KERNEL_POWER.