class CAS::BoxConditionUpperClosed
Implements the box condition with lower bound open and upper closed
“` 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 262 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 250 def representative @lower_cond = @lower_str = "<" @upper_cond = "<=" @upper_str = "≤" self end