class CAS::BoxConditionLowerClosed

Implements the box condition with lower bound closed and upper open

“` a ≤ f(x) < b “`

Public Instance Methods

call(fd) click to toggle source

Function call will evaluate box condition to evaluate relation

* **argument**: `Hash` with feed dictionary
* **returns**: `Trueclass` or `Falseclass`
# File lib/functions/fnc-box-conditions.rb, line 207
def call(fd)
  x_call = @x.call(fd)
  return ((@lower.call(fd) <= x_call) and (x_call < @upper))
end
representative() click to toggle source

Saves some required elements

# File lib/functions/fnc-box-conditions.rb, line 195
def representative
  @lower_cond  = "<="
  @lower_str   = "≤"
  @upper_cond  =  @upper_str = "<"
  self
end