breakout-detection 0.3.0 → 0.3.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/ext/breakout/edm_multi.cpp +1 -0
- data/ext/breakout/edm_percent.cpp +1 -0
- data/ext/breakout/edmx.cpp +2 -1
- data/ext/breakout/ext.cpp +4 -2
- data/ext/breakout/helper.cpp +2 -0
- data/ext/breakout/helper.h +1 -0
- data/lib/breakout/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a0ba64d0eabd1b0a9498549ac7fba2845a16f2c29ac92887f2634e9282bc97d
|
|
4
|
+
data.tar.gz: 91ddb465b3444dc6ddcf294ad80c93b862cbc7d0653bf20fe3c6f4c103329edc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 883109f457e918d875fbb7a7a5f391c94c4349e6f1ffb9820b5240af22f6ff381b47ea7df26571851c31cec026e1e4d16ade68df767e03f2a625747fbfa5a804
|
|
7
|
+
data.tar.gz: 9e5b96d0e3b348c9f52b3e7e4286b3f78c56641e814a0febb969b5bc368f97af49f1715042b83d082f1c13ab34bd2879e8926da9c6229157e1f8aeb8bc870842
|
data/CHANGELOG.md
CHANGED
data/ext/breakout/edm_multi.cpp
CHANGED
data/ext/breakout/edmx.cpp
CHANGED
|
@@ -6,6 +6,7 @@ Instead of calculating mean(X), we calculate median(X), and similarly for Y
|
|
|
6
6
|
|
|
7
7
|
#include <algorithm>
|
|
8
8
|
#include <cmath>
|
|
9
|
+
#include <functional>
|
|
9
10
|
#include <queue>
|
|
10
11
|
#include <vector>
|
|
11
12
|
|
|
@@ -15,7 +16,7 @@ double getMedian(const std::priority_queue<double, std::vector<double>, std::gre
|
|
|
15
16
|
|
|
16
17
|
std::vector<int> EDMX(const std::vector<double>& Z, int min_size = 24, double alpha = 2) {
|
|
17
18
|
|
|
18
|
-
alpha = 2; // Not used, just here for uniform
|
|
19
|
+
alpha = 2; // Not used, just here for uniform function signature
|
|
19
20
|
|
|
20
21
|
std::priority_queue<double> LeftMax;
|
|
21
22
|
std::priority_queue<double, std::vector<double>, std::greater<double>> LeftMin;
|
data/ext/breakout/ext.cpp
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
#include <string>
|
|
2
|
+
#include <vector>
|
|
3
|
+
|
|
2
4
|
#include <rice/rice.hpp>
|
|
3
5
|
#include <rice/stl.hpp>
|
|
4
6
|
|
|
@@ -44,7 +46,7 @@ void Init_ext() {
|
|
|
44
46
|
|
|
45
47
|
auto a = Rice::Array();
|
|
46
48
|
for (auto v : res) {
|
|
47
|
-
a.push(v);
|
|
49
|
+
a.push(v, false);
|
|
48
50
|
}
|
|
49
51
|
return a;
|
|
50
52
|
});
|
data/ext/breakout/helper.cpp
CHANGED
data/ext/breakout/helper.h
CHANGED
data/lib/breakout/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: breakout-detection
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Kane
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rice
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 4.
|
|
18
|
+
version: '4.7'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 4.
|
|
25
|
+
version: '4.7'
|
|
26
26
|
email: andrew@ankane.org
|
|
27
27
|
executables: []
|
|
28
28
|
extensions:
|
|
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
62
|
version: '0'
|
|
63
63
|
requirements: []
|
|
64
|
-
rubygems_version: 3.6.
|
|
64
|
+
rubygems_version: 3.6.9
|
|
65
65
|
specification_version: 4
|
|
66
66
|
summary: Breakout detection for Ruby
|
|
67
67
|
test_files: []
|