setThreshold

API definition

void setThreshold(float value);

Function

Sets the threshold for determining whether a vector enters multiple buckets. The default value is 1.0.

Input

float value: threshold for determining whether a vector is assigned to multiple buckets. The recommended value range is [1.0, 1.5]. The memory on the device is limited. When the memory usage reaches the limit, the OOM mechanism is triggered. As a result, the process is killed. Check the memory limit (/sys/fs/cgroup/memory/usermemory/memory.limit_in_bytes) on the device to evaluate the size of the database to be added. If the memory is insufficient, it is advised that the parameter value be in the range of [1.0, 1.1].

Output

N/A

Return value

N/A

Restrictions

The value range is [0, fuzzyK - 1]. For details about the value of fuzzyK, see getFuzzyK.