Class: Statkit::Spec::MinFuncExp
- Defined in:
- lib/statkit/specexp.rb
Instance Method Summary collapse
- #add_input_chunk(input_chunk) ⇒ Object
- #evaluate ⇒ Object
-
#initialize ⇒ MinFuncExp
constructor
A new instance of MinFuncExp.
- #streaming? ⇒ Boolean
Methods inherited from BaseExp
Constructor Details
#initialize ⇒ MinFuncExp
Returns a new instance of MinFuncExp.
73 74 75 |
# File 'lib/statkit/specexp.rb', line 73 def initialize @min = nil end |
Instance Method Details
#add_input_chunk(input_chunk) ⇒ Object
81 82 83 84 85 86 87 |
# File 'lib/statkit/specexp.rb', line 81 def add_input_chunk(input_chunk) if @min.nil? @min = input_chunk.min else @min = (input_chunk + [@min]).min end end |
#evaluate ⇒ Object
89 90 91 |
# File 'lib/statkit/specexp.rb', line 89 def evaluate() @min end |
#streaming? ⇒ Boolean
77 78 79 |
# File 'lib/statkit/specexp.rb', line 77 def streaming? true end |