Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 19 additions & 148 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions asap-common/sketch-core/src/count_min_sketchlib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use asap_sketchlib::{CountMin, RegularPath, SketchInput, Vector2D};
use asap_sketchlib::{CountMin, DataInput, RegularPath, Vector2D};

/// Concrete Count-Min type from asap_sketchlib when sketchlib backend is enabled.
/// Uses f64 counters (Vector2D<f64>) for weighted updates without integer rounding.
Expand Down Expand Up @@ -48,12 +48,12 @@ pub fn sketchlib_cms_update(inner: &mut SketchlibCms, key: &str, value: f64) {
if value <= 0.0 {
return;
}
let input = SketchInput::String(key.to_owned());
let input = DataInput::String(key.to_owned());
inner.insert_many(&input, value);
}

/// Helper to query a sketchlib Count-Min for a key, returning f64.
pub fn sketchlib_cms_query(inner: &SketchlibCms, key: &str) -> f64 {
let input = SketchInput::String(key.to_owned());
let input = DataInput::String(key.to_owned());
inner.estimate(&input)
}
Loading
Loading