Class: ABSplit::Functions::HeavisideWeightedSplit
- Inherits:
-
WeightedSplit
- Object
- WeightedSplit
- ABSplit::Functions::HeavisideWeightedSplit
- Defined in:
- lib/a_b_split/functions/heaviside_weighted_split.rb
Overview
Weighted split based on a modified Heaviside function. In case a numeric value is passed, it uses a sigmoid function applying a modified Heaviside to choose the experiment. In case a none numeric value is passed it uses SHA2 algorithm to get a value from the object, and after decide based on weights.
Persistent - Supports 256 bits as input
No collisions are possible
Constant Summary collapse
- MAX_HASH_VALUE =
('f' * 64).to_i(16)