libRASCH: ra_eval.h File Reference
ra_eval.h File Reference
Include dependency graph for ra_eval.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines
#define EVAL_MAX_TS 21
#define EVAL_MAX_USER 50
#define EVAL_MAX_HOST 50
#define EVAL_MAX_PRG 50
#define EVENT_MEM_ADD 0.1
#define MAX_ID_LEN 100
#define MAX_ATTRIB_LEN 100
Functions
eval_attribute * find_attribute (struct eval_head *h, const char *id)
int delete_attributes (struct eval_head *h)
long get_event_idx (struct eval_class *c, long event_id)
int del_prop_values (struct eval_class *c, long idx)
int get_sum_data_idx (sum_handle sh, long channel, long dim)
int add_prop_mem (struct eval_class *c)
int alloc_prop_mem (struct eval_property *p)
int read_evaluation (meas_handle mh)
get the original evaluation from a measurement
eval_handle add_eval_orig (meas_handle mh, struct plugin_struct *pl)
create original evaluation in a measurement
int add_class_orig (meas_handle mh, eval_handle eh, struct plugin_struct *pl)
add original event-classes
int add_events_orig (class_handle clh, struct plugin_struct *pl, long **ev_ids, long *num_ev)
add original events
int add_prop_orig (class_handle clh, struct plugin_struct *pl, long *ev_ids, long num_ev)
add original event properties
int add_values_orig (prop_handle ph, struct plugin_struct *pl, long *ev_ids, long num_ev)
add original event values
int add_summaries_orig (class_handle clh, struct plugin_struct *pl)
add event-summaries from a measurement
int add_sum_ch (class_handle clh, sum_handle sh, long sum_num, long num_ch, const long *ch, struct plugin_struct *pl)
int add_sum_part_orig (sum_handle sh, long n_ch, long n_dim, struct plugin_struct *pl)
int do_post_processing (meas_handle mh, eval_handle eh)
process original evaluation after getting the data
void post_process_ecg (meas_handle mh, eval_handle eh, class_handle clh)
post-process ecg data
int load_eval (meas_handle mh, const char *eval_file)
int get_eval_file (meas_handle mh, char *f)
returns evaluation filename
int eval_get_info (any_handle h, int info_id, value_handle vh)
int free_eval_infos (struct eval_info *ei)
Detailed Description
The header file contains all definitions for an evaluation.
Author: Raphael Schneider (rasch@med1.med.tum.de )
Definition in file ra_eval.h .
Define Documentation
#define EVENT_MEM_ADD 0.1
#define MAX_ATTRIB_LEN 100
Function Documentation
Parameters:
<mh> measurement handle
<pl> pointer to a plugin structure
The function adds all event-classes from a measurement to the original evaluation.
Definition at line 117 of file read_evaluation.c .
References plugin_struct::access , add_events_orig() , add_prop_orig() , add_summaries_orig() , plugin_access_func::get_class_info , plugin_access_func::get_class_num , ra_class_add() , ra_value_free() , ra_value_get_string() , ra_value_is_ok() , and ra_value_malloc() .
Referenced by read_evaluation() .
Definition at line 911 of file eval.c .
References eval_property::allocated_events , eval_property::ch_map , EVENT_MEM_ADD , eval_property::next , eval_property::num_elements , eval_property::num_entries , eval_class::num_event , eval_class::prop , RA_VALUE_TYPE_CHAR , RA_VALUE_TYPE_CHAR_ARRAY , RA_VALUE_TYPE_DOUBLE , RA_VALUE_TYPE_DOUBLE_ARRAY , RA_VALUE_TYPE_LONG , RA_VALUE_TYPE_LONG_ARRAY , RA_VALUE_TYPE_SHORT , RA_VALUE_TYPE_SHORT_ARRAY , eval_property::value , and eval_property::value_type .
Referenced by ra_class_add_event() .
Parameters:
<clh> event-class handle
<pl> pointer to a plugin structure
The function adds all event-properties from a measurement to the original evaluation.
Definition at line 240 of file read_evaluation.c .
References plugin_struct::access , add_values_orig() , plugin_access_func::get_prop_info , plugin_access_func::get_prop_num , ra_prop_add() , ra_value_free() , ra_value_get_double() , ra_value_get_long() , ra_value_get_string() , ra_value_is_ok() , and ra_value_malloc() .
Referenced by add_class_orig() .
Parameters:
<mh> measurement handle
<pl> pointer to a plugin structure
The function adds the original templates (stored in a measurement) in the evaluation 'e'.
Definition at line 362 of file read_evaluation.c .
References plugin_struct::access , add_sum_ch() , plugin_access_func::get_sum_ch_info , plugin_access_func::get_sum_info , plugin_access_func::get_sum_num , ra_sum_add() , ra_value_free() , ra_value_get_long_array() , ra_value_get_num_elem() , ra_value_get_string() , ra_value_is_ok() , and ra_value_malloc() .
Referenced by add_class_orig() .
Definition at line 1452 of file eval.c .
References eval_property::allocated_events , eval_property::ch_map , eval_property::evclass , eval_property::num_elements , eval_property::num_entries , eval_class::num_event , RA_VALUE_TYPE_CHAR , RA_VALUE_TYPE_CHAR_ARRAY , RA_VALUE_TYPE_DOUBLE , RA_VALUE_TYPE_DOUBLE_ARRAY , RA_VALUE_TYPE_LONG , RA_VALUE_TYPE_LONG_ARRAY , RA_VALUE_TYPE_SHORT , RA_VALUE_TYPE_SHORT_ARRAY , eval_property::value , and eval_property::value_type .
Referenced by ra_prop_add() .
int del_prop_values
(
struct eval_class *
c ,
long
idx
)
Definition at line 1058 of file eval.c .
References eval_property::ch_map , eval_property::next , eval_property::num_elements , eval_property::num_entries , RA_VALUE_TYPE_CHAR , RA_VALUE_TYPE_CHAR_ARRAY , RA_VALUE_TYPE_DOUBLE , RA_VALUE_TYPE_DOUBLE_ARRAY , RA_VALUE_TYPE_LONG , RA_VALUE_TYPE_LONG_ARRAY , RA_VALUE_TYPE_SHORT , RA_VALUE_TYPE_SHORT_ARRAY , eval_property::value , and eval_property::value_type .
Referenced by ra_class_del_event() .
int delete_attributes
(
struct eval_head *
h
)
Definition at line 78 of file eval_internal.c .
References _ra_set_error , eval_summary::ascii_id , eval_property::ascii_id , eval_class::ascii_id , eval_sum_ch_desc::ch , eval_summary::ch_desc , eval::def , eval_sum_ch_desc::fiducial_offset , MAX_ATTRIB_LEN , eval_sum_ch_desc::name , eval_summary::num_ch , eval_sum_ch_desc::num_dim , eval_class::num_event , eval::original , RA_ERR_UNKNOWN_INFO , ra_eval_attribute_get() , RA_INFO_CLASS_ASCII_ID_C , RA_INFO_CLASS_DESC_C , RA_INFO_CLASS_EV_NUM_L , RA_INFO_CLASS_NAME_C , RA_INFO_EVAL_ADD_TS_C , RA_INFO_EVAL_DEFAULT_L , RA_INFO_EVAL_DESC_C , RA_INFO_EVAL_HOST_C , RA_INFO_EVAL_MODIFY_TS_C , RA_INFO_EVAL_NAME_C , RA_INFO_EVAL_ORIGINAL_L , RA_INFO_EVAL_PROG_C , RA_INFO_EVAL_USER_C , RA_INFO_PROP_ASCII_ID_C , RA_INFO_PROP_DESC_C , RA_INFO_PROP_HAS_MINMAX_L , RA_INFO_PROP_MAX_D , RA_INFO_PROP_MIN_D , RA_INFO_PROP_NAME_C , RA_INFO_PROP_UNIT_C , RA_INFO_PROP_VALTYPE_L , RA_INFO_SUM_ASCII_ID_C , RA_INFO_SUM_CH_DIM_NAME_CA , RA_INFO_SUM_CH_DIM_UNIT_CA , RA_INFO_SUM_CH_FIDUCIAL_L , RA_INFO_SUM_CH_NUM_DIM_L , RA_INFO_SUM_CH_NUM_L , RA_INFO_SUM_DESC_C , RA_INFO_SUM_NAME_C , RA_INFO_SUM_NUM_CH_L , ra_value_get_number() , ra_value_set_long() , ra_value_set_string() , ra_value_set_string_array() , eval_sum_ch_desc::unit , and eval_property::value_type .
Referenced by ra_info_get() .
int free_eval_infos
(
struct eval_info *
ei
)
long get_event_idx
(
struct eval_class *
c ,
long
event_id
)
int get_sum_data_idx
(
sum_handle
sh ,
long
channel ,
long
dim
)
int load_eval
(
meas_handle
mh ,
const char *
eval_file
)
Generated on Fri May 27 11:33:26 2005 for libRASCH by
1.4.2