Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

A DeltaPresenceEstimationHistogramBucket message with the following values: min_probability: 0.1 max_probability: 0.2 frequency: 42 means that there are 42 records for which δ is in [0.1, 0.2). An important particular case is when min_probability = max_probability = 1: then, every individual who shares this quasi-identifier combination is in the dataset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket

Returns a new instance of GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket.



2510
2511
2512
# File 'lib/google/apis/dlp_v2/classes.rb', line 2510

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucket_sizeFixnum

Number of records within these probability bounds. Corresponds to the JSON property bucketSize

Returns:

  • (Fixnum)


2487
2488
2489
# File 'lib/google/apis/dlp_v2/classes.rb', line 2487

def bucket_size
  @bucket_size
end

#bucket_value_countFixnum

Total number of distinct quasi-identifier tuple values in this bucket. Corresponds to the JSON property bucketValueCount

Returns:

  • (Fixnum)


2492
2493
2494
# File 'lib/google/apis/dlp_v2/classes.rb', line 2492

def bucket_value_count
  @bucket_value_count
end

#bucket_valuesArray<Google::Apis::DlpV2::GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues>

Sample of quasi-identifier tuple values in this bucket. The total number of classes returned per bucket is capped at 20. Corresponds to the JSON property bucketValues



2498
2499
2500
# File 'lib/google/apis/dlp_v2/classes.rb', line 2498

def bucket_values
  @bucket_values
end

#max_probabilityFloat

Always greater than or equal to min_probability. Corresponds to the JSON property maxProbability

Returns:

  • (Float)


2503
2504
2505
# File 'lib/google/apis/dlp_v2/classes.rb', line 2503

def max_probability
  @max_probability
end

#min_probabilityFloat

Between 0 and 1. Corresponds to the JSON property minProbability

Returns:

  • (Float)


2508
2509
2510
# File 'lib/google/apis/dlp_v2/classes.rb', line 2508

def min_probability
  @min_probability
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2515
2516
2517
2518
2519
2520
2521
# File 'lib/google/apis/dlp_v2/classes.rb', line 2515

def update!(**args)
  @bucket_size = args[:bucket_size] if args.key?(:bucket_size)
  @bucket_value_count = args[:bucket_value_count] if args.key?(:bucket_value_count)
  @bucket_values = args[:bucket_values] if args.key?(:bucket_values)
  @max_probability = args[:max_probability] if args.key?(:max_probability)
  @min_probability = args[:min_probability] if args.key?(:min_probability)
end