An implementation of the Random Cut Forest data structure for sketching streaming data, with support for anomaly detection, density estimation, imputation, and more.
Currently the library uses asserts and panics when errors are encountered. This change updates the RCF trait to use a Result type instead to allow for error handling (see https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html). In future PRs we will extend this pattern to other modules.
Functions in the RCF trait interface that can fail are given a Result return type.
Some existing asserts are replaced a function that returns a Result.
Remove the get prefix from simple getters in the RCF trait interface to follow the Rust convention.
Additional changes were made by cargo fmt
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Currently the library uses asserts and panics when errors are encountered. This change updates the RCF trait to use a Result type instead to allow for error handling (see https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html). In future PRs we will extend this pattern to other modules.
get
prefix from simple getters in the RCF trait interface to follow the Rust convention.cargo fmt
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.