Module: Statsample::VectorShorthands
- Included in:
- Array, GSL::Vector, Vector
- Defined in:
- lib/statsample/vector.rb
Instance Method Summary collapse
- #to_numeric(*args) ⇒ Object
-
#to_scale(*args) ⇒ Object
Creates a new Daru::Vector object of type :scale.
-
#to_vector(*args) ⇒ Object
Creates a new Statsample::Vector object Argument should be equal to Vector.new.
Instance Method Details
#to_numeric(*args) ⇒ Object
14 15 16 |
# File 'lib/statsample/vector.rb', line 14 def to_numeric(*args) Statsample::Vector.new(self) end |
#to_scale(*args) ⇒ Object
Creates a new Daru::Vector object of type :scale. Deprecated. Use to_numeric instead.
10 11 12 |
# File 'lib/statsample/vector.rb', line 10 def to_scale(*args) Statsample::Vector.new(self, *args) end |
#to_vector(*args) ⇒ Object
Creates a new Statsample::Vector object Argument should be equal to Vector.new
4 5 6 |
# File 'lib/statsample/vector.rb', line 4 def to_vector(*args) Statsample::Vector.new(self) end |