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

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 7 years 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 namespace rappor {
9
10 enum Probability {
11 PROBABILITY_87_5, // 87.5%
12 PROBABILITY_75, // 75%
13 PROBABILITY_50, // 50%
14 PROBABILITY_25, // 25%
15 PROBABILITY_12_5, // 12.5%
16 };
17
18 // An object describing a rappor metric and the parameters used to generate it.
19 //
20 // For a full description of the rappor metrics, see
21 // http://www.chromium.org/developers/design-documents/rappor
22 struct RapporParameters {
23 // The name of the metric.
24 std::string rappor_name;
25
26 // The number of bytes stored in the bloom filter.
27 int bloom_filter_size_bytes;
28 // The number of hashes used in the bloom filter.
29 int bloom_filter_hash_count;
30
31 // The probability that a bit will be replaced with fake data.
32 Probability fake_prob;
33 // The probability that a fake bit will be a one.
34 Probability fake_one_prob;
35 // The probability that a one bit reports as one.
36 Probability one_coin_prob;
37 // The probability that a zero bit reports as one.
38 Probability zero_coin_prob;
39 };
40
41 } // namespace rappor
42
43 #endif // COMPONENTS_RAPPOR_RAPPOR_PARAMETERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698