Class: DTW::Barycenter
- Inherits:
-
Data
- Object
- Data
- DTW::Barycenter
- Defined in:
- lib/dtwrb/barycenter.rb,
sig/dtwrb.rbs
Instance Attribute Summary collapse
-
#center ⇒ Object
readonly
Returns the value of attribute center.
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#dispersion ⇒ Object
readonly
Returns the value of attribute dispersion.
Class Method Summary collapse
Instance Method Summary collapse
- #dimension ⇒ ::Integer
- #length ⇒ ::Integer
- #scalar? ⇒ Boolean
- #to_h ⇒ ::Hash[::Symbol, untyped]
- #with ⇒ Barycenter
Instance Attribute Details
#center ⇒ Object (readonly)
Returns the value of attribute center
4 5 6 |
# File 'lib/dtwrb/barycenter.rb', line 4 def center @center end |
#count ⇒ Object (readonly)
Returns the value of attribute count
4 5 6 |
# File 'lib/dtwrb/barycenter.rb', line 4 def count @count end |
#dispersion ⇒ Object (readonly)
Returns the value of attribute dispersion
4 5 6 |
# File 'lib/dtwrb/barycenter.rb', line 4 def dispersion @dispersion end |
Class Method Details
.new ⇒ Barycenter
172 |
# File 'sig/dtwrb.rbs', line 172
def self.new: (center: ::Array[untyped], dispersion: ::Array[untyped], count: ::Integer) -> Barycenter
|
Instance Method Details
#dimension ⇒ ::Integer
7 8 9 10 |
# File 'lib/dtwrb/barycenter.rb', line 7 def dimension frame = center.first frame.is_a?(Array) ? frame.length : 1 end |
#length ⇒ ::Integer
5 |
# File 'lib/dtwrb/barycenter.rb', line 5 def length = center.length |
#scalar? ⇒ Boolean
12 |
# File 'lib/dtwrb/barycenter.rb', line 12 def scalar? = !center.first.is_a?(Array) |
#to_h ⇒ ::Hash[::Symbol, untyped]
177 |
# File 'sig/dtwrb.rbs', line 177
def to_h: () -> ::Hash[::Symbol, untyped]
|