Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: components/rappor/rappor_parameters.h

Issue 1058333002: Multi-dimension rappor metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_RAPPOR_RAPPOR_PARAMETERS_H_ 5 #ifndef COMPONENTS_RAPPOR_RAPPOR_PARAMETERS_H_
6 #define COMPONENTS_RAPPOR_RAPPOR_PARAMETERS_H_ 6 #define COMPONENTS_RAPPOR_RAPPOR_PARAMETERS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace rappor { 10 namespace rappor {
(...skipping 30 matching lines...) Expand all
41 // The number of cohorts to divide the reports for this metric into. 41 // The number of cohorts to divide the reports for this metric into.
42 // This should divide kMaxCohorts evenly so that each cohort has an equal 42 // This should divide kMaxCohorts evenly so that each cohort has an equal
43 // probability of being assigned users. 43 // probability of being assigned users.
44 int num_cohorts; 44 int num_cohorts;
45 45
46 // The number of bytes stored in the Bloom filter. 46 // The number of bytes stored in the Bloom filter.
47 int bloom_filter_size_bytes; 47 int bloom_filter_size_bytes;
48 // The number of hash functions used in the Bloom filter. 48 // The number of hash functions used in the Bloom filter.
49 int bloom_filter_hash_function_count; 49 int bloom_filter_hash_function_count;
50 50
51 // The number of flag bits this metric contains.
Alexei Svitkine (slow) 2015/04/09 21:25:03 Nit: Comment says bits, field name says bytes.
Steven Holte 2015/04/14 20:07:38 Done.
52 int flag_bytes;
53
51 // The probability that a bit will be redacted with fake data. 54 // The probability that a bit will be redacted with fake data.
52 Probability fake_prob; 55 Probability fake_prob;
53 // The probability that a fake bit will be a one. 56 // The probability that a fake bit will be a one.
54 Probability fake_one_prob; 57 Probability fake_one_prob;
55 58
56 // The probability that a one bit in the redacted data reports as one. 59 // The probability that a one bit in the redacted data reports as one.
57 Probability one_coin_prob; 60 Probability one_coin_prob;
58 // The probability that a zero bit in the redacted data reports as one. 61 // The probability that a zero bit in the redacted data reports as one.
59 Probability zero_coin_prob; 62 Probability zero_coin_prob;
60 63
61 // The reporting level this metric is reported at. 64 // The reporting level this metric is reported at.
62 RecordingLevel recording_level; 65 RecordingLevel recording_level;
63 }; 66 };
64 67
65 } // namespace rappor 68 } // namespace rappor
66 69
67 #endif // COMPONENTS_RAPPOR_RAPPOR_PARAMETERS_H_ 70 #endif // COMPONENTS_RAPPOR_RAPPOR_PARAMETERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698