aws / random-cut-forest-by-aws

An implementation of the Random Cut Forest data structure for sketching streaming data, with support for anomaly detection, density estimation, imputation, and more.
https://github.com/aws/random-cut-forest-by-aws
Apache License 2.0
206 stars 33 forks source link

fix for issue 318 #319

Closed sudiptoguha closed 2 years ago

sudiptoguha commented 2 years ago

Issue #, if available: 318

Description of changes: Fixes the off by 1 computation of the mass of forests which consist of exactly one node -- which can be multiple copies of the same point.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.