OpasnetUtils/Math: Difference between revisions

From Opasnet
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
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