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

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

Issue 49753002: RAPPOR implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_RAPPOR_RAPPOR_PARAMETERS_H_
6 #define COMPONENTS_RAPPOR_RAPPOR_PARAMETERS_H_
7
8 #include <string>
9
10 namespace rappor {
11
12 enum Probability {
13 PROBABILITY_87_5, // 87.5%
14 PROBABILITY_75, // 75%
15 PROBABILITY_50, // 50%
16 PROBABILITY_25, // 25%
17 PROBABILITY_12_5, // 12.5%
18 };
19
20 // An object describing a rappor metric and the parameters used to generate it.
21 //
22 // For a full description of the rappor metrics, see
23 // http://www.chromium.org/developers/design-documents/rappor
24 struct RapporParameters {
25 // The name of the metric.
26 std::string rappor_name;
27
28 // The number of bytes stored in the bloom filter.
29 int bloom_filter_size_bytes;
30 // The number of hashes used in the bloom filter.
31 int bloom_filter_hash_count;
32
33 // The probability that a bit will be replaced with fake data.
34 Probability fake_prob;
35 // The probability that a fake bit will be a one.
36 Probability fake_one_prob;
37 // The probability that a one bit reports as one.
Ilya Sherman 2014/01/10 11:00:32 nit: Is this a true one bit, or any one bit, after
Steven Holte 2014/01/14 00:47:54 Done.
38 Probability one_coin_prob;
39 // The probability that a zero bit reports as one.
Ilya Sherman 2014/01/10 11:00:32 Ditto
Steven Holte 2014/01/14 00:47:54 Done.
40 Probability zero_coin_prob;
41 };
Ilya Sherman 2014/01/10 11:00:32 nit: Should all of the fields in this struct be ma
Steven Holte 2014/01/14 00:47:54 I don't think that would be meaningful, since the
42
43 } // namespace rappor
44
45 #endif // COMPONENTS_RAPPOR_RAPPOR_PARAMETERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698