visualize_helper 0.0.10.30 → 0.0.10.31
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/ext/visualize_helper/visualize_helper.c +7 -1
- data/lib/visualize_helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdaff7a9bc9376e93f1568c513f883dfbbc3da57
|
4
|
+
data.tar.gz: bb40c30bfd00bba13047d68f95dade0b76f9e960
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fc7a74e19f2201eed773dab5f211e6357742f664aa9b6acb6d253b8459cdf6fd35c08872357bf16d9288066a595f198240d48a1a4afce63344c52ae9351a29a
|
7
|
+
data.tar.gz: bca5f2f496189c17f60927445686deb3651ee9c12abd601f9eb68eced07ca5a0d3dab4e0f63e5a038ea9618aaf63add498a6792d47d5dee78f57948c6f304f79
|
@@ -155,6 +155,8 @@ static int encontra_min_max_period(VALUE days, VALUE traj, VALUE array){
|
|
155
155
|
int min_c = FIX2INT(rb_ary_entry(array,0));
|
156
156
|
int max_c = FIX2INT(rb_ary_entry(array,1));
|
157
157
|
int period;
|
158
|
+
int traj_size;
|
159
|
+
|
158
160
|
|
159
161
|
if (days_c < first_interval_c) {
|
160
162
|
if (min_c > days_c) {
|
@@ -197,7 +199,11 @@ static int encontra_min_max_period(VALUE days, VALUE traj, VALUE array){
|
|
197
199
|
|
198
200
|
rb_ary_store(array,0,INT2FIX(min_c));
|
199
201
|
rb_ary_store(array,1,INT2FIX(max_c));
|
200
|
-
|
202
|
+
traj_size = RARRAY_LEN(traj);
|
203
|
+
|
204
|
+
for ( int i =0; i < traj_size; i++){
|
205
|
+
rb_ary_push(rb_ary_entry(aggr,period),rb_ary_entry(traj,i));
|
206
|
+
}
|
201
207
|
|
202
208
|
return ST_CONTINUE;
|
203
209
|
}
|