2017-03-27 14:11:44 +0200 | received badge | ● Notable Question (source) |
2017-03-27 14:11:44 +0200 | received badge | ● Popular Question (source) |
2012-10-15 14:29:01 +0200 | commented answer | Probability space valued functions It solved my problem, thank you very much! |
2012-10-15 14:27:56 +0200 | marked best answer | Probability space valued functions First off, the Secondly, your first syntax was right; entropy was a property of the whole probability space. There isn't any room in the syntax for your variable, though, so this isn't possible in exactly this way. Is this sufficient? I assume that this one doesn't make sense since it's not actually a probability distribution - maybe we should look for that in this code... |
2012-10-15 14:27:56 +0200 | received badge | ● Scholar (source) |
2012-10-15 14:27:51 +0200 | received badge | ● Supporter (source) |
2012-10-15 12:47:32 +0200 | received badge | ● Editor (source) |
2012-10-15 12:46:16 +0200 | asked a question | Probability space valued functions I am trying to define a FiniteProbabilitySpace whose probabilities depend on a value x: var('x') Then if I say Sp.entropy(), I get the result: TypeError: bad operand type for unary -: 'function' which seems logic, I did not determine x. But if I say Sp(0).entropy(), I get: TypeError: Unable to convert x (='<function<lambda>at0xa65d2a8>') to real number. I do not understand this. Is it possible to do what I want? Thank you very much! |