Equalize Numerical Indices
Synopsis
This operators computes an equalized time series of an input time series with numerical indices.
Description
The output time series will have new equidistant index values. The configuration of the new index values are defined by the parameterequalize method. Each method has different ways how the number of examples, start value, stop value and step size of the new index values are determined. For details see the description of the parameterequalize method.
对应的时间序列鲜明的特征值utes will be computed by using the same functionality as theReplace Missing Values (Series)operator (note that this functionality is configured to ensure finite values). The three parametersreplace type numerical,replace type nominalandreplace type date timedefines how the new values are computed.
This operator works on all time series (numerical, nominal, date-time) which have numerical indices.
Input
example set
The ExampleSet which contains the time series data as attributes.
Output
equalized example set
The ExampleSet contains the equalized time series.
original
The ExampleSet that was given as input is passed through without changes.
Parameters
Indices attribute
The attribute holding the indices values of the time series. It has to be numeric. The attribute name can be selected from the drop down box of the parameter if the meta data is known.
Equalize method
这个参数定义了使用平衡method:
- same range and number of examples as original data: The same range ('start' and 'stop value') and the same 'number of examples' as the original data is used. The step size is calculated as (<stop value>-<start value>) / (<number of examples>- 1)
- number of examples, start value and step size: The 'number of examples', the 'start value' and the 'step size' are provided. The number of examples and the start value can be retrieved from the original data or provided as custom values (see the parameters 'number of examples', 'custom number of examples', 'start value', 'custom start value'). The step size has to be provided by the parameter 'step size'. The stop value is calculated as<start value>+ (<number of examples>- 1) x<step size>
- number of examples and range(start,stop): The 'number of examples', the 'start value' and the 'stop value' are provided. The number of examples, the start value and the stop value can be retrieved from the original data or provided as custom values (see the parameters 'number of examples', 'custom number of examples', 'start value', 'custom start value','stop value', 'custom stop value'). The step size is calculated as (<stop value>-<start value>) / (<number of examples>- 1)
- range(start,stop) and step size: The start value, the stop value and the step size are provided. The start value and the stop value can be retrieved from the original data or provided as custom values (see the parameters 'start value', 'custom start value','stop value', 'custom stop value'). The step size has to be provided by the parameter 'step size'. The number of examples is calculated as Ceil((<stop value>-<start value>) /<step size>) + 1
Number of examples
Specify how the number of examples is retrieved.
- same as original data: Same value as the original data.
- custom: The value is specified by the parameter 'custom number of examples'.
Custom number of examples
New number of examples for the equalized time series
Start value
Specify how the start value is retrieved.
- same as original data: Same value as the original data.
- custom: The value is specified by the parameter 'custom start value'.
Custom start value
New start value of the index values for the equalized time series.
Stop value
Specify how the stop value is retrieved.
- same as original data: Same value as the original data.
- custom: The value is specified by the parameter 'custom stop value'.
Custom stop value
New stop value of the index values for the equalized time series.
Step size (numerical)
Step size between the new index values of the equalized time series.
Replace type numerical
The kind of replacement which is used to compute the new numerical values of the equalized time series.
- previous value: The previous value in the series is used as a replacement. Neighboring missing values are all replaced by the first previous valid value. Missing values at the start of a series are replaced by the next valid value.
- next value: The next value in the series is used as a replacement. Neighboring missing values are all replaced by the next valid value. Missing values at the end of a series are replaced by the first previous valid value.
- average: The average of the neighboring values in the series is used as a replacement. Neighboring missing values are all replaced by the average of the neighboring valid values. Missing values at the start and end of a series are replaced by the next, respectively previous valid value.
- linear interpolation: A linear interpolation (using the old and new index values) between the two neighboring values in the series is used to calculate the replacement value. The next valid neighboring values are used to perform a linear interpolation and all missing values are replaced by the replacement values calculated by the linear interpolation. Missing values at the start and end of a series are replaced by the next, respectively previous valid value.
- value: All missing values are replaced by a constant value, specified by thereplace value numericalparameter.
Replace type nominal
The kind of replacement which is used to compute the new nominal values of the equalized time series.
- previous value: The previous value in the series is used as a replacement. Neighboring missing values are all replaced by the first previous valid value. Missing values at the start of a series are replaced by the next valid value.
- next value: The next value in the series is used as a replacement. Neighboring missing values are all replaced by the next valid value. Missing values at the end of a series are replaced by the first previous valid value.
- value: All missing values are replaced by a constant value, specified by thereplace value nominalparameter.
Replace type date time
The kind of replacement which is used to compute the new date time values of the equalized time series.
- previous value: The previous value in the series is used as a replacement. Neighboring missing values are all replaced by the first previous valid value. Missing values at the start of a series are replaced by the next valid value.
- next value: The next value in the series is used as a replacement. Neighboring missing values are all replaced by the next valid value. Missing values at the end of a series are replaced by the first previous valid value.
- average: The average of the neighboring values in the series is used as a replacement. Neighboring missing values are all replaced by the average of the neighboring valid values. Missing values at the start and end of a series are replaced by the next, respectively previous valid value.
- linear interpolation: A linear interpolation (using the old and new index values) between the two neighboring values in the series is used to calculate the replacement value. The next valid neighboring values are used to perform a linear interpolation and all missing values are replaced by the replacement values calculated by the linear interpolation. Missing values at the start and end of a series are replaced by the next, respectively previous valid value.
- value: All missing values are replaced by a constant value, specified by thereplace value date timeparameter.
Replace value numerical
Ifreplace type numericalis set tovaluethis parameter specifies the replacement value for all missing values of numerical time series.
Replace value nominal
Ifreplace type nominalis set tovaluethis parameter specifies the replacement value for all missing values of nominal time series.
Replace value date time
Ifreplace type date timeis set tovaluethis parameter specifies the replacement value for all missing values of time series with date time values.