Class: ABSplit::Functions::HeavisideWeightedSplit

Inherits:
WeightedSplit
  • Object
show all
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)

Constants inherited from WeightedSplit

WeightedSplit::MAX_POSITIONS

Method Summary

Methods inherited from WeightedSplit

value_for