- From: Luis Alvarez <alvarez@zib.de>
- Date: Wed, 14 Oct 1998 15:29:07 +0200 (MET DST)
- To: www-math@w3.org
Hello, I am writing a MathML interface for REDUCE. I have come across the problem of interpreting discrete_random_variables when evaluating <mean>,<sdev> etc... In the dictionary it is said that if the first argument is a symbol of type discrete_random_variable then we calculate the mean according to the given E[X] formula where we are told that: the probability that x=x_i is P(x=x_i) = f(x_i) When implementing this I realised that the function f(x_i) is not defined in the syntax of the <mean> tag. And so, using the infomation in the dictionary I wasn't able to figure out how to implement this. My idea was to allow all <ci> with attribute type=discrete_random_variable to have a <sep/> such that we are first given x_i and then f(x_i). But is this MathML?? Something like this: <apply><mean/> <cn type="discrete_random_variable"> 1<sep/> .2 </cn> <cn type="discrete_random_variable"> 4 <sep/> .3 </cn> <cn type="discrete_random_variable"> 6 <sep/> .5 </cn> </apply> What do you think? How is it done normally? Luis Alvarez ________________________________________________________ Konrad-Zuse-Zentrum für Informationstechnik Berlin (ZIB) Optisation Division Tel: (+49 30) 84 18 53 34
Received on Wednesday, 14 October 1998 09:29:18 UTC