Function thresholds

Function Documentation

inline std::vector<data_t> thresholds(data_t lower, data_t upper, data_t epsilon)

Samples a set of thresholds from \( {(1+epsilon)^i | i \in Z, lower \le (1+epsilon)^i \le upper} \) as described in [1].

References : [1] Badanidiyuru, A., Mirzasoleiman, B., Karbasi, A., & Krause, A. (2014). Streaming submodular maximization: Massive data summarization on the fly. In Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. https://doi.org/10.1145/2623330.2623637

Parameters
  • lower – The lower bound (inclusive) which is used form sampling

  • upper – The upper bound (inclusive) which is used form sampling

  • epsilon – The sampling accuracy

Returns

std::vector<data_t> The set of sampled thresholds