From Chris Myers
I wanted to include functions in my math for DataGenerators, but it always turns them into “misc” and does not preserve the function name. I was thinking to use this to indicate, for example, “mean” of a result of a repeated task.
Status: open
Group: 2.3
Created: Wed Jul 13, 2016 09:09 PM UTC by Richard Adams
Last Updated: Mon Jul 18, 2016 09:02 PM UTC
Owner: Richard Adams
From Chris Myers
I wanted to include functions in my math for DataGenerators, but it always turns them into “misc” and does not preserve the function name. I was thinking to use this to indicate, for example, “mean” of a result of a repeated task.
Hi Chris,
'mean' isn't a supported MathML function in SED-ML level 1 - the only vector functions are sum, min, max and product are supported ( see section 2.2.1 of the spec). If you wanted to create a 'mean' function, then you could follow the example of org.jlibsedml.mathsymbols.ProductSymbol, MinSymbol etc - but this would be invalid SEDML
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I agree it is invalid, but I think I also tried other functions and all functions I tried turned into “misc”. Would be nice if serialized any function you don’t recognize preserving the “name”. This would allow experimentation with extensions to the mathML subset.
Hi Chris,
'mean' isn't a supported MathML function in SED-ML level 1 - the only vector functions are sum, min, max and product are supported ( see section 2.2.1 of the spec). If you wanted to create a 'mean' function, then you could follow the example of org.jlibsedml.mathsymbols.ProductSymbol, MinSymbol etc - but this would be invalid SEDML
Status: open
Group: 2.3
Created: Wed Jul 13, 2016 09:09 PM UTC by Richard Adams
Last Updated: Mon Jul 18, 2016 09:03 PM UTC
Owner: Richard Adams
From Chris Myers
I wanted to include functions in my math for DataGenerators, but it always turns them into “misc” and does not preserve the function name. I was thinking to use this to indicate, for example, “mean” of a result of a repeated task.
I've committed in a test 'testExtensionSymbolMean()' in org.jlibsedml.mathsymbols.SymbolTests
that shows how to create and register a new symbol with jmathml and provide an implementation of its functionality - does this do what you want?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've committed in a test 'testExtensionSymbolMean()' in org.jlibsedml.mathsymbols.SymbolTests
that shows how to create and register a new symbol with jmathml and provide an implementation of its functionality - does this do what you want?
Status: pending
Group: 2.3
Created: Wed Jul 13, 2016 09:09 PM UTC by Richard Adams
Last Updated: Sun Jul 24, 2016 09:15 PM UTC
Owner: Richard Adams
From Chris Myers
I wanted to include functions in my math for DataGenerators, but it always turns them into “misc” and does not preserve the function name. I was thinking to use this to indicate, for example, “mean” of a result of a repeated task.
Can you send some code you've tried, or an example of the MathML you'd expect, just so I'm clear what is the problem?
I think I did something like this:
Libsedml.parseFormulaString(mean(X));
And I think it came up with “misc”.
Chris
Related
Bugs: #10
Hi Chris,
'mean' isn't a supported MathML function in SED-ML level 1 - the only vector functions are sum, min, max and product are supported ( see section 2.2.1 of the spec). If you wanted to create a 'mean' function, then you could follow the example of org.jlibsedml.mathsymbols.ProductSymbol, MinSymbol etc - but this would be invalid SEDML
I agree it is invalid, but I think I also tried other functions and all functions I tried turned into “misc”. Would be nice if serialized any function you don’t recognize preserving the “name”. This would allow experimentation with extensions to the mathML subset.
Chris
Related
Bugs: #10
I've committed in a test 'testExtensionSymbolMean()' in org.jlibsedml.mathsymbols.SymbolTests
that shows how to create and register a new symbol with jmathml and provide an implementation of its functionality - does this do what you want?
Yes, that should work.
Related
Bugs: #10