Difference between revisions of "OpasnetUtils/Math"

From Testiwiki
Jump to: navigation, search
m (Description)
m (Reverted edits by Jouni (talk) to last revision by Pauli)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:Opasnet]]
 
[[Category:Opasnet]]
 
[[Category:R tools]]
 
[[Category:R tools]]
 +
[[Category:OpasnetUtils]]
 
{{method|moderator=|stub=Yes}}
 
{{method|moderator=|stub=Yes}}
  
 
==Description==
 
==Description==
Defines basic mathematical operations (log, exp, abs, ...) for [[ovariable]]s
+
Defines basic mathematical operations (log, exp, abs, ...) for [[OpasnetUtils/Ovariable|ovariables]]
  
 
==Code==
 
==Code==
<rcode
+
 
name="setmethod.math"
+
https://www.opasnet.org/svn/opasnet_utils/trunk/R/Math.r
label="Initiate functions"
 
graphics="1"
 
>
 
# SETMETHOD MATH ################### Math defines basic mathematical operations (log, exp, abs, ...) for ovariables
 
temp <- setMethod(
 
f = "Math",
 
signature = signature(x = "ovariable"),
 
definition = function(x) {
 
x@output$Result <- callGeneric(x@output$Result)
 
return(x)
 
}
 
)
 
</rcode>
 
  
 
==See also==
 
==See also==

Latest revision as of 08:30, 28 December 2012



Description

Defines basic mathematical operations (log, exp, abs, ...) for ovariables

Code

https://www.opasnet.org/svn/opasnet_utils/trunk/R/Math.r

See also