stl-rb 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/ext/stl/stl.hpp +6 -6
- data/lib/stl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 061add34ca7cbbc77e11a2178f040c80d7dc37ac98d9c845efa065e9cfdf3b29
|
4
|
+
data.tar.gz: 8bb5178783861d2a559ae10ebe13cf413cda80d8bb3f24fda84c3328a2f91ea7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6928df73f32cc800b991c2e9797cd1ff0536f408a3a8bb7821883fc9a5623e98dca508ae3d827dff271cb0a638dacc5264de07acb7915a52f80deb52bc71a5ec
|
7
|
+
data.tar.gz: caed7783af4c42b8c21eb1585c92d2aa2fb956dc34b380916e2a8f859e1a2c2cfbf6523e71f2235581f5c630cb2e4fddf9e5c3e9ccb6e4258ad3a50d0d421423
|
data/CHANGELOG.md
CHANGED
data/ext/stl/stl.hpp
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* STL C++ v0.1.
|
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
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
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
|
}
|
data/lib/stl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stl-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
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-
|
11
|
+
date: 2023-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rice
|