Description Usage Arguments Value Examples
Creates a data frame with a column
1 | createFitDataFrame(fFittingFunction, sParameterArgName = "parameters", ...)
|
fFittingFunction |
function. A tire fitting function. Pre-installed functions available are 'FYPurePacejka2002', 'FXPurePacejka2002.NoIA', and 'FXPurePacejka2002.wIA' . The function must have assigned attributes '"parameterNames"', which list the names of the parameters. Example: 'attr(fFittingFunction, "parameterNames") = c("pC1", "pD1", "pD2" ...)' |
sParameterArgName |
string. Defaults to "parameters". Name of the parameters argument in the curve fitting function. For built in curves such as 'FYPurePacejka2002', the parameter name is 'parameters'. |
... |
Other arguments passed into the curve fitting function. Pass vectors in order to sweep through multiple values. The exception being the item containing the vector of parameters, which will not be swept through. |
data frame with a column for each original item from '...' and the output of the 'fFittingFunction'. This data frame is ready for plotting.
1 2 3 4 5 6 7 8 | data = createFitDataFrame(
FYPurePacejka2002,
sParameterArgName = "parameters",
SA = seq(-12,12,0.25),
IA = 0,
FZ = c(-250, -500, -750, -1000, -1500),
parameters = c(20,5.89,-1.23,-12.23,1.87,-0.75,0.08,90.44,0,0.02,
-0.18,187.77,11.81,-23.34,-0.04,-0.14,0.42,0.02))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.