View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleApiDistributionBucketOptionsLinear (google_api_discovery_engine v0.27.0)

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)).

Attributes

  • numFiniteBuckets (type: integer(), default: nil) - Must be greater than 0.
  • offset (type: float(), default: nil) - Lower bound of the first bucket.
  • width (type: float(), default: nil) - Must be greater than 0.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleApiDistributionBucketOptionsLinear{
    numFiniteBuckets: integer() | nil,
    offset: float() | nil,
    width: float() | nil
  }

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.