Learn R Programming

fast (version 0.51)

example_model2: A function to demonstrate FAST

Description

The model depends on 4 parameters. It produces a weighted sum of the 4 parameters and returns this sum. The weights depend on an additional parameter x=1:200.

Usage

example_model2(p, fig=FALSE)

Arguments

p
A vector of 4 parameters
fig
boolean: Plot the model(x)

Value

  • A vector of the weighted sum of parameters.

See Also

fast, sensitivity_rep

Examples

Run this code
#The model depends on 4 parameters
#
#It produces a weighted sum of the 4 parameters and returns this sum
#
#The weights depend on an additional parameter x=1:200 
example_model2(p=c(1,3,1,1),fig=TRUE)
example_model2(p=c(1,2,2,3),fig=TRUE)

Run the code above in your browser using DataLab