All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.promoted.delivery.client.Sampler Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package ai.promoted.delivery.client;

/**
 * Algorithms that let us choose a subset of SDK traffic to process.
 */
public interface Sampler {
  /**
   * Simple random sampling that selects below the given threshold.
   * @param threshold the sampling percentage in the range [0, 1].
   * @return true if we should sample in, false if we should sample out.
   */
  boolean sampleRandom(float threshold);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy