Class: Boundy::Domain::Posterior
- Inherits:
-
Object
- Object
- Boundy::Domain::Posterior
- Includes:
- Plugin
- Defined in:
- lib/boundy/domain/posterior.rb
Class Method Summary collapse
Instance Method Summary collapse
- #cute ⇒ Object
-
#initialize(datum) ⇒ Posterior
constructor
A new instance of Posterior.
- #inspect ⇒ Object
Methods included from Plugin
Constructor Details
#initialize(datum) ⇒ Posterior
Returns a new instance of Posterior.
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/boundy/domain/posterior.rb', line 20 def initialize(datum) if datum.nil? raise end @from = Boundy::Bound::Infinite::Below.new @to = case datum when Boundy::Bound datum else Boundy::Bound.new(datum) end end |
Class Method Details
Instance Method Details
#cute ⇒ Object
34 35 36 |
# File 'lib/boundy/domain/posterior.rb', line 34 def cute "[-infinity, #{@to.datum}]" end |
#inspect ⇒ Object
38 39 40 |
# File 'lib/boundy/domain/posterior.rb', line 38 def inspect "#<#{self.class.name} bounded above by #{@to.inspect}>" end |