Difference between revisions of "OpasnetUtils/Math"

From Testiwiki
Jump to: navigation, search
m
m
Line 12: Line 12:
 
label="Initiate functions"
 
label="Initiate functions"
 
graphics="1"
 
graphics="1"
 +
showcode="1"
 
>
 
>
 
# SETMETHOD MATH ################### Math defines basic mathematical operations (log, exp, abs, ...) for ovariables
 
# SETMETHOD MATH ################### Math defines basic mathematical operations (log, exp, abs, ...) for ovariables

Revision as of 10:51, 15 June 2012



Description

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

Code

- Hide code

# 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)
	}
)

See also