rust 0.10 → 0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe8f5c3e0753395fe3925f7a64eab0476308df329a9c9d594c74d1e568419204
4
- data.tar.gz: 9f5371713565e77777deba19ba745bb358e0a23dfad6fb562e3940cf90cf8f1e
3
+ metadata.gz: 77dee9cb8c4a1e2894a8054fab8dbf140b8f6a4aed8ef38a60b41564fb5e8e69
4
+ data.tar.gz: c9bf14d2239f464cf73ffaee86bcbfe9155a323269eff1b34b7bcd1272c46d36
5
5
  SHA512:
6
- metadata.gz: abf20b1c4cea07089c27ab886ff640886ff4e5f74d2b964b3ab959d413cdf1d34d72055e1d7141e3585df5adcdfbf5a53716d3cf7ca7b352ee02d4e39dda020b
7
- data.tar.gz: c6c97cc64a50449bcf97a5d584f6a17b4e05762f79321ed9dcccfee496b567933f3fb0b4e8908c4f8029aeb0683cb7d86863586f7c200979f98911aa5b82c258
6
+ metadata.gz: a648f440574e7734f979c0ec5d65bc9594202cfe88414517dcc50482e391360809ced88bbc0b825f548dfd23dd2b9dfe47b71cabbd216249d992d8a18d14717c
7
+ data.tar.gz: 1b999d94b96c05a0615ff05b3e1588c4a8e822baebba57055ae041a6fe2c7d0355d747e3c88973c9325046c59c4eff013b27336d95297c8c0e1cc06f515b2f27
@@ -0,0 +1,44 @@
1
+ require 'rust'
2
+
3
+ Rust.prerequisite('robustbase')
4
+
5
+ module Rust::Plots
6
+ class AdjustedBoxplot < DistributionPlot
7
+ protected
8
+ def _show()
9
+ function = Rust::Function.new("adjbox")
10
+
11
+ names = []
12
+ @series.each_with_index do |data, i|
13
+ series, options = *data
14
+ varname = "plotter.series#{i}"
15
+ Rust[varname] = series
16
+ function.arguments << Rust::Variable.new(varname)
17
+ names << (options[:name] || (i+1).to_s)
18
+ end
19
+
20
+ function.options = self._augmented_options({'names' => names})
21
+
22
+ function.call
23
+
24
+ return self
25
+ end
26
+ end
27
+ end
28
+
29
+ module Rust::RBindings
30
+ def adjbox(*args, **options)
31
+ result = Rust::Plots::AdjustedBoxplot.new
32
+ options.each do |k, v|
33
+ result[k] = v
34
+ end
35
+
36
+ result._do_not_override_options!
37
+
38
+ args.each do |s|
39
+ result.series(s)
40
+ end
41
+
42
+ result.show
43
+ end
44
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rust
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.10'
4
+ version: '0.11'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Scalabrino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-10 00:00:00.000000000 Z
11
+ date: 2022-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rinruby
@@ -71,6 +71,7 @@ files:
71
71
  - lib/rust/core/types/matrix.rb
72
72
  - lib/rust/core/types/s4class.rb
73
73
  - lib/rust/core/types/utils.rb
74
+ - lib/rust/external/robustbase.rb
74
75
  - lib/rust/models/all.rb
75
76
  - lib/rust/models/anova.rb
76
77
  - lib/rust/models/regression.rb