class ProbDSL::PValue
Attributes
value[R]
Public Class Methods
new(v)
click to toggle source
# File lib/probdsl.rb, line 59 def initialize(v); @value = v; end
Public Instance Methods
call()
click to toggle source
# File lib/probdsl.rb, line 67 def call; @value end
eql?(b)
click to toggle source
# File lib/probdsl.rb, line 69 def eql?(b) @value = b.value end
eval()
click to toggle source
# File lib/probdsl.rb, line 60 def eval; PDistribution.mk_const @value; end
eval_pick()
click to toggle source
# File lib/probdsl.rb, line 61 def eval_pick; @value; end
flatten()
click to toggle source
# File lib/probdsl.rb, line 63 def flatten PDistribution.mk_const self end
hash()
click to toggle source
# File lib/probdsl.rb, line 73 def hash @value.hash end
to_d()
click to toggle source
# File lib/probdsl.rb, line 77 def to_d @value end