LinearResponse

data class LinearResponse(val numFiniteBuckets: Int, val offset: Double, val width: Double)

Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i).Lower bound (1 <= i < N): offset + (width * (i - 1)).

Constructors

Link copied to clipboard
fun LinearResponse(numFiniteBuckets: Int, offset: Double, width: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Must be greater than 0.

Link copied to clipboard

Lower bound of the first bucket.

Link copied to clipboard

Must be greater than 0.