Difference between revisions of "Working with functions"
(Created page with " *Function files created by Rave") |
|||
Line 1: | Line 1: | ||
+ | |||
+ | ==Introduction== | ||
+ | |||
+ | |||
+ | ==Modeled Variables== | ||
+ | |||
+ | When you import a function, a new variable is created for each of the function's outputs, and each output becomes a new column in your data set. You can use these new variables just like you use any other variable in your data set. However, variables that were calculated by functions also have some special properties that let you customize how Rave handles them. | ||
+ | |||
+ | One of these properties is to define a "modeled variable" for each variable calculated by the function. This property is used to let you compare different models of the same physical quantity. For example, suppose you have written several functions that all calculate "Gross Weight," but they each use a different technique. Your goal might be to compare the different models to determine which is most suitable. When you load these functions, each will add a new column to your data set that contains its calculation of Gross Weight. But telling Rave that all of these columns are models of the same physical quantity, Rave can make it easier for you to switch between models and compare them. Some graphs will also give you special options when you are working with variables that have multiple models. | ||
+ | |||
+ | |||
+ | |||
+ | You can use this when you have multiple variables that represent the same physical quantity, but that are calculated by different functions. For example, suppose you load a data set that has a variable called "Gross Weight" and then you load a function that also calculates Gross Weight, but in a | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
*[[Function files created by Rave]] | *[[Function files created by Rave]] |
Revision as of 13:35, 3 December 2011
Introduction
Modeled Variables
When you import a function, a new variable is created for each of the function's outputs, and each output becomes a new column in your data set. You can use these new variables just like you use any other variable in your data set. However, variables that were calculated by functions also have some special properties that let you customize how Rave handles them.
One of these properties is to define a "modeled variable" for each variable calculated by the function. This property is used to let you compare different models of the same physical quantity. For example, suppose you have written several functions that all calculate "Gross Weight," but they each use a different technique. Your goal might be to compare the different models to determine which is most suitable. When you load these functions, each will add a new column to your data set that contains its calculation of Gross Weight. But telling Rave that all of these columns are models of the same physical quantity, Rave can make it easier for you to switch between models and compare them. Some graphs will also give you special options when you are working with variables that have multiple models.
You can use this when you have multiple variables that represent the same physical quantity, but that are calculated by different functions. For example, suppose you load a data set that has a variable called "Gross Weight" and then you load a function that also calculates Gross Weight, but in a