getProcess-methods: The 'getProcess' method

Description Usage Arguments Value Author(s) References Examples

Description

Gets a process from the workflow.

Usage

1

Arguments

this

the underlying object of class mtkExpWorkflow.

name

a string from "design", "evaluate", or "analyze" to specify the process to fetch.

Value

an object of the class mtkProcess.

Author(s)

Juhui WANG, MIA-Jouy, Inra, [email protected]

References

J. Wang, H. Richard, R. Faivre, H. Monod (2013). Le package mtk, une biblioth<c3><a8>que R pour l'exploration num<c3><a9>rique des mod<c3><a8>les. In: Analyse de sensibilit<c3><a9> et exploration de mod<c3><a8>les : Application aux sciences de la nature et de l'environnement (R. Faivre, B. Iooss, S. Mah<c3><a9>vas, D. Makowski, H. Monod, Eds). Editions Quae, Versailles.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Build a workflow to do the sensitivity analysis for the model "Ishigami"
	x1 <- make.mtkFactor(name="x1", distribName="unif",
		 distribPara=list(min=-pi, max=pi))
	x2 <- make.mtkFactor(name="x2", distribName="unif",
    	 distribPara=list(min=-pi, max=pi))
	x3 <- make.mtkFactor(name="x3", distribName="unif", 
     	distribPara=list(min=-pi, max=pi))
	ishi.factors <- mtkExpFactors(list(x1,x2,x3))


	designer <- mtkNativeDesigner("BasicMonteCarlo", 
            information=list(size=20))
	model <- mtkNativeEvaluator("Ishigami" )
	analyser <- mtkNativeAnalyser("Regression", information=list(nboot=20) )

	ishiReg <- mtkExpWorkflow(expFactors=ishi.factors,
		   processesVector=c( design=designer,
				      evaluate=model,
				      analyze=analyser)
			  				)
	run(ishiReg)

# Extract the process "design" or "evaluate" from the workflow for other uses

	designer <- getProcess(ishiReg, "design")
	evaluator <- getProcess(ishiReg, "evaluate")

mtk documentation built on May 29, 2017, 5:34 p.m.