Class: Statkit::Spec::BaseExp

Inherits:
Object
  • Object
show all
Defined in:
lib/statkit/specexp.rb

Direct Known Subclasses

AvgFuncExp, MaxFuncExp, MinFuncExp, StdevFuncExp

Instance Method Summary collapse

Instance Method Details

#add_input(input_chunk) ⇒ Object

add input for evaluation



16
17
18
19
20
21
22
# File 'lib/statkit/specexp.rb', line 16

def add_input(input_chunk)
  if ! input_chunk.is_a?(Array)
    input_chunk = [input_chunk]
  end

  add_input_chunk(input_chunk)
end

#evaluateObject

evaluate with bulk input

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/statkit/specexp.rb', line 11

def evaluate()
  raise NotImplementedError.new
end

#streaming?Boolean

return true if this expression is evaluated with streaming input

Returns:

  • (Boolean)


6
7
8
# File 'lib/statkit/specexp.rb', line 6

def streaming?
  false
end