rust 0.10 → 0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rust/external/robustbase.rb +44 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77dee9cb8c4a1e2894a8054fab8dbf140b8f6a4aed8ef38a60b41564fb5e8e69
|
4
|
+
data.tar.gz: c9bf14d2239f464cf73ffaee86bcbfe9155a323269eff1b34b7bcd1272c46d36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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
|