|
|
|
|
| Function | new_rwi_struct |
| Include file | RWI_R.H |
| Prototype | RWI *new_rwi_struct( int st_length , int lt_length ) |
| Remarks | Allocate, initialize and return a virgin random walk index structure. |
![]()
| Function | reset_rwi_struct |
| Include file | RWI_R.H |
| Prototype | void reset_rwi_struct( RWI *rwi_ptr ) |
| Remarks | Reset a RWI data structure for a new data series. |
![]()
| Function | get_circular_index |
| Include file | RWI_R.H |
| Prototype | int get_circular_index( int cur_idx , int offset , int idx_max ) |
| Remarks | Support a circular index in both directions. |
![]()
| Function | update_rwi_struct |
| Include file | RWI_R.H |
| Prototype | void update_rwi_struct( RWI *rwi_ptr , DATA_REC *data_ptr ) |
| Remarks | Update the caller's RWI with the new data. Once we have collected enough data to calc the RWIs, rwi_ptr->enough_data will be set to TRUE and the 4 rwi vars can be used. |
![]()
| Function | free_rwi_struct |
| Include file | RWI_R.H |
| Prototype | void free_rwi_struct( RWI *rwi_ptr ) |
| Remarks | Return the RWI and its sub-structure memory to the system. |
![]()
| Function | new_rwi_ind_struct |
| Include file | RWI_R.H |
| Prototype | RWI_IND *new_rwi_ind_struct( int data_cnt ) |
| Remarks | Allocate, and return a virgin random walk index indicator display structure for data_cnt items. |
![]()
| Function | free_rwi_ind_struct |
| Include file | RWI_R.H |
| Prototype | void free_rwi_ind_struct( RWI_IND *rwi_ptr ) |
| Remarks | Return the RWI indicator display structure and its sub-structure memory to the system. |
![]()
| Function | calc_rwi_ind |
| Include file | RWI_R.H |
| Prototype | void calc_rwi_ind( DATA_REC *data_ptr , int data_cnt , RWI_IND *inds , int st_length , int lt_length ) |
| Remarks | Calculate a set of random walk index indicators for the DATA_REC data series. The indicators will be built in the caller's RWI_IND indicator display structure inds. |
![]()
![]()