Learn R Programming

mtk (version 1.0)

mtkFastDesigner-class: The mtkFastDesigner class

Description

The mtkFastDesigner class is a sub-class of the class mtkDesigner. It implements the sampling method Fast and provides all the slots and methods defined in the class mtkDesigner.

Arguments

Class Hierarchy

Parent classes :
mtkDesigner
Direct Known Subclasses :

Constructor

mtkFastDesigner
signature(mtkParameters = NULL, listParameters = NULL)

Slots

name:
(character) always takes the string "design".
protocol:
(character) always takes the string "R".
site:
(character) always takes the string "mtk".
service:
(character) always takes the string "Fast".
parameters:
(vector) a vector of [mtkParameter] containing the parameters to pass while calling the service.
ready:
(logical) a logical to tell if the process is ready to run.
state:
(logical) a logical to tell if the results produced by the process are available and ready to be consumed.
result:
(ANY) a data holder to hold the results produced by the process

Methods

setName
signature(this = "mtkFastDesigner", name = "character"): Not used, method inherited from the parent class.
setParameters
signature(this = "mtkFastDesigner", f = "vector"): Assigns new parameters to the process.
getParameters
signature(this = "mtkFastDesigner"): Returns the parameters as a named list.
is.ready
signature( = "mtkFastDesigner"): Tests if the process is ready to run.
setReady
signature(this = "mtkFastDesigner", switch = "logical"): Makes the process ready to run.
is.ready
signature( = "mtkFastDesigner"): Tests if the results produced by the process are available.
setReady
signature(this = "mtkFastDesigner", switch = "logical"): Marks the process as already executed.
getResult
signature(this = "mtkFastDesigner"): Returns the results produced by the process as a [mtkDesignerResult].
getData
signature(this = "mtkFastDesigner"): Returns the results produced by the process as a data.frame.
serializeOn
signature(this = "mtkFastDesigner"): Returns all data managed by the process as a named list.
run
signature(this = "mtkFastDesigner", context= "mtkExpWorkflow"): Generates the experimental design by sampling the factors.
summary
signature(object = "mtkFastDesigner"): Provides a summary of the results produced by the process.
print
signature(x = "mtkFastDesigner"): Prints a report of the results produced by the process.
plot
signature(x = "mtkFastDesigner"): Plots the results produced by the process.
report
signature(this = "mtkFastDesigner"): Reports the results produced by the process.

References

  1. A. Saltelli, K. Chan and E. M. Scott (2000). Sensitivity Analysis. Wiley, New York.
  2. J. Wang, H. Richard, R. Faivre, H. Monod (2013). Le package mtk, une bibliothèque R pour l'exploration numérique des modèles. In: Analyse de sensibilité et exploration de modèles : Application aux sciences de la nature et de l'environnement (R. Faivre, B. Iooss, S. Mahévas, D. Makowski, H. Monod, Eds). Editions Quae, Versailles.

See Also

help(fast, sensitivity)

Examples

Run this code

##			 Sensitivity analysis of the "Ishigami" model with the "Fast" method 

#	Input the factors
		data(Ishigami.factors)
		
# 	Build the processes and workflow:

#   1) the design process
		exp1.designer <- mtkFastDesigner(listParameters
	    	= list(n=1000)) 

#   2) the simulation process
		exp1.evaluator <- mtkNativeEvaluator(model="Ishigami") 

#   3) the analysis process 
		exp1.analyser <- mtkFastAnalyser()

#   4) the workflow

		exp1 <- mtkExpWorkflow(expFactors=Ishigami.factors,
	    processesVector = c(design=exp1.designer,
		evaluate=exp1.evaluator, analyze=exp1.analyser))

# 	Run the workflow and reports the results.
		run(exp1)
		print(exp1)


Run the code above in your browser using DataLab