diff options
| author | Devtools Arcadia <[email protected]> | 2022-02-07 18:08:42 +0300 | 
|---|---|---|
| committer | Devtools Arcadia <[email protected]> | 2022-02-07 18:08:42 +0300 | 
| commit | 1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch) | |
| tree | e26c9fed0de5d9873cce7e00bc214573dc2195b7 /library/cpp/histogram/adaptive/protos | |
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'library/cpp/histogram/adaptive/protos')
| -rw-r--r-- | library/cpp/histogram/adaptive/protos/histo.proto | 36 | ||||
| -rw-r--r-- | library/cpp/histogram/adaptive/protos/python/ya.make | 3 | ||||
| -rw-r--r-- | library/cpp/histogram/adaptive/protos/ya.make | 13 | 
3 files changed, 52 insertions, 0 deletions
| diff --git a/library/cpp/histogram/adaptive/protos/histo.proto b/library/cpp/histogram/adaptive/protos/histo.proto new file mode 100644 index 00000000000..8961fef0227 --- /dev/null +++ b/library/cpp/histogram/adaptive/protos/histo.proto @@ -0,0 +1,36 @@ +package NKiwiAggr; + + +// THistoRec represents a value record added to a multihistogram +message THistoRec { +    optional uint64 Id = 1; // Current histogram identifier +    optional double Value = 2; +    optional double Weight = 3 [default = 1.0]; // You can set a certain weight to each record or just skip records using Weight=0 +} + +message THistoRecs { +    repeated THistoRec HistoRecs = 1; +} + +enum EHistogramType { +    HT_FIXED_BIN_HISTOGRAM = 1; +    HT_ADAPTIVE_DISTANCE_HISTOGRAM = 2; +    HT_ADAPTIVE_WEIGHT_HISTOGRAM = 3; +    HT_ADAPTIVE_HISTOGRAM = 4;  // if the quality function is unknown +    HT_ADAPTIVE_WARD_HISTOGRAM = 5; +} + +message THistogram { +    optional uint64 Id = 1; +    optional double MinValue = 2; +    optional double BinRange = 4; // for FIXED_BIN_HISTOGRAM only. And it's OK that it is 4 after 2 +    repeated float Freq = 5; +    repeated float Position = 6;  // for ADAPTIVE histograms only +    optional double MaxValue = 7; +    optional EHistogramType Type = 8;  // Empty field means FIXED_BIN_HISTOGRAM +} + +// Multihistogam +message THistograms { +    repeated THistogram HistoRecs = 1; +} diff --git a/library/cpp/histogram/adaptive/protos/python/ya.make b/library/cpp/histogram/adaptive/protos/python/ya.make new file mode 100644 index 00000000000..3328c279659 --- /dev/null +++ b/library/cpp/histogram/adaptive/protos/python/ya.make @@ -0,0 +1,3 @@ +OWNER(abogutskiy) + +PY_PROTOS_FOR(library/cpp/histogram/adaptive/protos) diff --git a/library/cpp/histogram/adaptive/protos/ya.make b/library/cpp/histogram/adaptive/protos/ya.make new file mode 100644 index 00000000000..7635cfcb8cd --- /dev/null +++ b/library/cpp/histogram/adaptive/protos/ya.make @@ -0,0 +1,13 @@ +PROTO_LIBRARY() + +OWNER(g:crawl) + +SRCS( +    histo.proto +) + +IF (NOT PY_PROTOS_FOR) +    EXCLUDE_TAGS(GO_PROTO) +ENDIF() + +END() | 
