Bases: pycast.common.pycastobject.PyCastObject
Baseclass for all error measures.
Initializes the error measure.
Parameters: | minimalErrorCalculationPercentage (integer) – The number of entries in an original TimeSeries that have to have corresponding partners in the calculated TimeSeries. Corresponding partners have the same time stamp. Valid values are in [0.0, 100.0]. |
---|---|
Raise: | Raises a ValueError if minimalErrorCalculationPercentage is not in [0.0, 100.0]. |
This is the error calculation function that gets called by BaseErrorMeasure.get_error().
Both parameters will be correct at this time.
Parameters: |
|
---|---|
Returns: | Returns a float representing the error. |
Return type: | float |
Raise: | Raises a NotImplementedError if the child class does not overwrite this method. |
Gets the defined subset of self._errorValues.
Both parameters will be correct at this time.
Parameters: |
|
---|---|
Returns: | Returns a list with the defined error values. |
Return type: | list |
Raise: | Raises a ValueError if startDate or endDate do not represent correct boundaries for error calculation. |
Calculates for which value confidenceLevel% of the errors are closer to 0.
Parameters: | confidenceLevel (float) – percentage of the errors that should be smaller than the returned value for overestimations and larger than the returned value for underestimations. confidenceLevel has to be in [0.0, 1.0] |
---|---|
Returns: | return a tuple containing the underestimation and overestimation for the given confidenceLevel |
Return type: | tuple |
Warning: | Index is still not calculated correctly |
Calculates the error for the given interval (startingPercentage, endPercentage) between the TimeSeries given during BaseErrorMeasure.initialize().
Parameters: |
|
---|---|
Returns: | Returns a float representing the error. |
Return type: | float |
Raise: | Raises a ValueError in one of the following cases:
|
Raise: | Raises a StandardError if BaseErrorMeasure.initialize() was not successfull before. |
Initializes the ErrorMeasure.
During initialization, all BaseErrorMeasure.local_errors() are calculated.
Parameters: |
|
---|---|
Returns: | Return True if the error could be calculated, False otherwise based on the minimalErrorCalculationPercentage. |
Return type: | boolean |
Raise: | Raises a StandardError if the error measure is initialized multiple times. |
Calculates the error between the two given values.
Parameters: |
|
---|---|
Returns: | Returns the error measure of the two given values. |
Return type: | numeric |
Raise: | Raises a NotImplementedError if the child class does not overwrite this method. |