rcf 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +2 -2
- data/lib/rcf/forest.rb +1 -6
- data/lib/rcf/version.rb +1 -1
- data/vendor/aarch64-linux/LICENSE-THIRD-PARTY +132 -1683
- data/vendor/aarch64-linux/README.md +6 -5
- data/vendor/aarch64-linux/lib/librcf.so +0 -0
- data/vendor/arm64-darwin/LICENSE-THIRD-PARTY +132 -1683
- data/vendor/arm64-darwin/README.md +6 -5
- data/vendor/arm64-darwin/lib/librcf.dylib +0 -0
- data/vendor/x64-mingw/LICENSE-THIRD-PARTY +135 -1901
- data/vendor/x64-mingw/README.md +5 -4
- data/vendor/x64-mingw/lib/rcf.dll +0 -0
- data/vendor/x86_64-darwin/LICENSE-THIRD-PARTY +132 -1683
- data/vendor/x86_64-darwin/README.md +6 -5
- data/vendor/x86_64-darwin/lib/librcf.dylib +0 -0
- data/vendor/x86_64-linux/LICENSE-THIRD-PARTY +132 -1683
- data/vendor/x86_64-linux/README.md +6 -5
- data/vendor/x86_64-linux/lib/librcf.so +0 -0
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f225cb5b79c0d6f3d37ec55a602100ce9486b94049ba54633267361fac10f78
|
4
|
+
data.tar.gz: 9c3a90dbdf238dbf039d1dbdc1e1d1ba11ab7152939a7209369cf54e0ac09e7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 610dd6ccd82842910cfa8e2c288f0cd0be17171e8d59643a7e50b591ca0cd4b2965fb22246b2996700c688bf0e6341bf5c30261e76228a41fba0f4d57e94edf5
|
7
|
+
data.tar.gz: f0a390279a934ffda80fe0df4041b63716fa069b4eb9694a46923474ae0df409861fdc871a376b52f482e474e08d7873509672821d4269972c10803596ecf63a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Random Cut Forest](https://github.com/aws/random-cut-forest-by-aws) (RCF) anomaly detection for Ruby
|
4
4
|
|
5
|
-
[![Build Status](https://github.com/ankane/random-cut-forest-ruby/workflows/build/badge.svg
|
5
|
+
[![Build Status](https://github.com/ankane/random-cut-forest-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/random-cut-forest-ruby/actions)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -53,7 +53,7 @@ end
|
|
53
53
|
|
54
54
|
## Parameters
|
55
55
|
|
56
|
-
Set parameters
|
56
|
+
Set parameters
|
57
57
|
|
58
58
|
```ruby
|
59
59
|
Rcf::Forest.new(
|
data/lib/rcf/forest.rb
CHANGED
@@ -4,7 +4,7 @@ module Rcf
|
|
4
4
|
@dimensions = dimensions
|
5
5
|
|
6
6
|
@pointer = FFI.rcf_create(dimensions)
|
7
|
-
|
7
|
+
@pointer.free = FFI["rcf_free"]
|
8
8
|
|
9
9
|
set_param("shingle_size", shingle_size)
|
10
10
|
set_param("sample_size", sample_size)
|
@@ -21,11 +21,6 @@ module Rcf
|
|
21
21
|
FFI.rcf_update(@pointer, point_ptr(point))
|
22
22
|
end
|
23
23
|
|
24
|
-
def self.finalize(pointer)
|
25
|
-
# must use proc instead of stabby lambda
|
26
|
-
proc { FFI.rcf_free(pointer) }
|
27
|
-
end
|
28
|
-
|
29
24
|
private
|
30
25
|
|
31
26
|
def set_param(param, value)
|
data/lib/rcf/version.rb
CHANGED