Steps methods¶
Basic methods¶
Return a shallow copy of this steps object |
|
Clear all the step data defined within the steps object, the same as defining a new Steps object with no data, except will retain the assigned datetime flag and base. |
|
The first key or start value of the steps, if the steps extend to negative infinity, the first value will be the first finite key value. |
|
The last key or start value of the steps, if the steps extend to positive infinity, the last value will be the last finite key value. |
|
|
A convenience function to either return the internal steps data in a Pandas Series object with the steps keys as the index or convert a provided 2-D set of data into a Pandas Series. |
|
The individual step changes at each array index, these are the delta values that add and subtract across the series to realise the entire step function. |
Check if this steps object is using datetime step keys or not. |
|
|
The step key values within this object, can be returned either in raw float format or converted if using datetime. |
The cummulative step values at each key value. |
|
|
A clean multi-dimensional numpy array of the step keys and either the cummulative values or the step change values all in floats and ready to use in further analysis. |
Return all the raw steps data within this steps object. |
Plotting methods¶
|
Plot the steps function using different parameters and methods. |
|
Plot a smoothed steps function using different parameters and methods. |
|
Plot the result of applying a reduction function to a rolling window across the step values. |
|
Plot a histogram of the cummulative step values. |
|
Plot an empirical cummulative distribution function of the cummulative step values. |
|
Plot an partial auto-correlation function of the cummulative step values. |
|
Plot an auto-correlation function of the cummulative step values. |
|
Plot and display summary details and statistics for the Steps object. |
Class Loader methods¶
|
Read a Pandas dataframe with values that represent either the cummulative value of the data steps or the direct step values seperately. |
|
Read arrays of values for start, end and weight values that represent either the cummulative value of the data steps or the direct step values seperately, indexed by the start and possibly end arrays. |
|
Read a dictionary with values that represent either the cummulative value of the data steps or the direct step values seperately, indexed by the dictionary key values. |
Instance Loader methods¶
|
Add an array of step or steps objects to this collection of steps. |
|
Add an array of internal step data as per the DataModel used internally by HotStepper. |
|
Add an array of individual step objects to this collection of steps. |
Step methods¶
|
This is a mathematical function definition of the Steps object, this is a dynamically created formula representation that can be passed an array of values to evaluate the steps function at. |
|
This is a mathematical function definition of the Steps object, this is a dynamically created formula representation that can be passed an array of values to evaluate the steps function at. |
|
This will evaluate the cummulative steps function at the provided input values. |
|
Change the basis function to apply to the steps data when evaluating as a mathematical function, the default basis is the Heaviside step function. |
Return a reference to the assigned Basis. |
Arithmetic operators¶
Equivalent to multiplying the Steps by -1. |
|
|
The + operation to add int, float, step and steps objects like they are numbers. |
|
The - operation to subtract int, float, step and steps objects like they are numbers. |
|
The * operation to multiply int, float, step and steps objects like they are numbers. |
|
The / operation to divide int, float, step and steps objects like they are numbers. |
Logical operators¶
|
Create new steps with a constant weight of 1 everywhere the steps are not equal to zero. |
|
Create new steps with a constant weight of 1 everywhere the steps are equal to zero. |
|
|
|
Equal to boolean comparison. |
|
Not equal to boolean comparison. |
|
Greater than boolean comparison. |
|
Less than boolean comparison. |
|
Greater than or equal to boolean comparison. |
|
Less than or equal to boolean comparison. |
Statistical operators¶
|
Returns the covariance between this steps object and another. |
|
Returns the correlation between this steps object and another. |
Returns a number of data items for the step keys within the dataset, such as; |
Summary statistics¶
Returns the integral (area under the curve) for the cummulative steps values across all step keys. |
|
|
Generate a table containing a number of standard statistical metrics for the steps data. |
|
Returns the minimum value for the cummulative steps values across all step keys. |
Returns the maximum value for the cummulative steps values across all step keys. |
|
Returns the weighted variance of the cummulative steps values across all step keys. |
|
Returns the weighted standard deviation of the cummulative steps values across all step keys. |
|
Returns the weighted mean of the cummulative steps values across all step keys. |
|
Returns the median value for the cummulative steps values across all step keys. |
|
|
Return the value of the percentile of the cummulative steps values. |
Calculates the Empirical Cummulative Distribution Function for the steps data. |
|
|
Calculates a histogram for the corresponding step function values |
Miscellaneous methods¶
|
Clip the steps between lower and upper limits, this function is equivalent to taking a slice of the steps and returning a new steps object only containing data between the clip boundries. |
|
Clamp the steps between lower and upper limits, this function is equivalent to zeroing out the steps beyond the lower and upper limits. |
|
Right shift operator >>, used to shift the step foward. |
|
Left shift operator <<, used to shift the step backwards. |
|
Compare the steps function with another to determine if the two are equivalent based on their cummulative values and step keys. |