anomaly_detection 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7684140dd183a5876d66b65e3a4058ffb05eb7aa0517d7dad79a730ef060eb0
4
- data.tar.gz: 5e81da7336723cbc8f2982e5e45c63f198134f90f3d9ef814c5c8305ac0dfb84
3
+ metadata.gz: cd8b32a5d482c312deb58949c67489b21ce336ddfd90d6215a0f5cf7650f8067
4
+ data.tar.gz: 3ebd3c26210e64df4f07a13dccf7e0f0276e4cc2e825d0684a9947cbc5d94bc8
5
5
  SHA512:
6
- metadata.gz: 6c37033c3be9f521c76911218bec8a9ebac09daa8697a9f8206a2d37f07e318c6c1a3811e9e27cb608544c88cc36cea3cb677e9fd5f91d247c02d40827c70594
7
- data.tar.gz: c50e0a77c59ed916d6b3d8c390c8dbfdf905b644216a72cf58188e4ba67fefd3fe34f0d8e3855346b7486fb6dc8e4c4b11b4ddfdf9ee82686c18104f007b8674
6
+ metadata.gz: fd3972f75c65c104057b0b3b4102462e66cf490a901b3d18b2aebd623916d058d0c7eeaa0528d5013838605e36ae29efacaaf2bcbb76c74f90740bb36c191fca
7
+ data.tar.gz: 0dccba6f00ee2b41683aaa3833108b61095ac02f1be9cf4c6d581a822765022fa8fbd99f7e6afee499768eda69bd2355775af90592a46672ff829b9c38b0735d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.3.0 (2024-10-22)
2
+
3
+ - Dropped support for Ruby < 3.1
4
+
5
+ ## 0.2.2 (2023-06-20)
6
+
7
+ - Fixed bug with STL
8
+
1
9
  ## 0.2.1 (2023-05-11)
2
10
 
3
11
  - Fixed error on Fedora
data/NOTICE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  Copyright (C) 2015 Twitter, Inc and other contributors
2
- Copyright (C) 2021-2023 Andrew Kane
2
+ Copyright (C) 2021-2024 Andrew Kane
3
3
 
4
4
  This program is free software: you can redistribute it and/or modify
5
5
  it under the terms of the GNU General Public License as published by
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Learn [how it works](https://blog.twitter.com/engineering/en_us/a/2015/introducing-practical-and-robust-anomaly-detection-in-a-time-series)
6
6
 
7
- [![Build Status](https://github.com/ankane/AnomalyDetection.rb/workflows/build/badge.svg?branch=master)](https://github.com/ankane/AnomalyDetection.rb/actions)
7
+ [![Build Status](https://github.com/ankane/AnomalyDetection.rb/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/AnomalyDetection.rb/actions)
8
8
 
9
9
  ## Installation
10
10
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * STL C++ v0.1.2
2
+ * STL C++ v0.1.3
3
3
  * https://github.com/ankane/stl-cpp
4
4
  * Unlicense OR MIT License
5
5
  *
@@ -151,11 +151,11 @@ void ess(const float* y, size_t n, size_t len, int ideg, size_t njump, bool user
151
151
  auto ok = est(y, n, len, ideg, (float) n, &ys[n - 1], nleft, nright, res, userw, rw);
152
152
  if (!ok) {
153
153
  ys[n - 1] = y[n - 1];
154
- if (k != n - 1) {
155
- auto delta = (ys[n - 1] - ys[k - 1]) / ((float) (n - k));
156
- for (auto j = k + 1; j <= n - 1; j++) {
157
- ys[j - 1] = ys[k - 1] + delta * ((float) (j - k));
158
- }
154
+ }
155
+ if (k != n - 1) {
156
+ auto delta = (ys[n - 1] - ys[k - 1]) / ((float) (n - k));
157
+ for (auto j = k + 1; j <= n - 1; j++) {
158
+ ys[j - 1] = ys[k - 1] + delta * ((float) (j - k));
159
159
  }
160
160
  }
161
161
  }
@@ -1,3 +1,3 @@
1
1
  module AnomalyDetection
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anomaly_detection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-12 00:00:00.000000000 Z
11
+ date: 2024-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.2
19
+ version: 4.3.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.2
26
+ version: 4.3.3
27
27
  description:
28
28
  email: andrew@ankane.org
29
29
  executables: []
@@ -60,14 +60,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '2.7'
63
+ version: '3.1'
64
64
  required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  requirements: []
70
- rubygems_version: 3.4.10
70
+ rubygems_version: 3.5.16
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: Time series anomaly detection for Ruby