Logo Search packages:      
Sourcecode: ygraph version File versions  Download package

void dataset_recalc ( DataSet data_set  ) 

Call a calculation operation on a specified data set.

Parameters:
data_set The DataSet to be recalculated.

Definition at line 781 of file special_fn.c.

References dataset_calc_derivative(), dataset_read_from_file(), _DataSet::fname, and _DataSet::type.

Referenced by data_reload_all().

{
  switch(data_set->type)
    {
    case YG_DATAFILE:
      dataset_read_from_file(data_set->fname, option_read_skip_step);
      break;
    case YG_SUBTRACT:
      dataset_calc_subtract(data_set);
      break;
    case YG_DERIVATIVE:
      dataset_calc_derivative(data_set);
      break;
    case YG_INT:
      dataset_read_integrate_file(data_set->fname, option_read_skip_step);
      break;
    case YG_FRAME_INT:
      dataset_read_frame_integrate_file(data_set->fname, option_read_skip_step, 0);
      break;
    case YG_TIME_INT:
      dataset_read_frame_integrate_file(data_set->fname, option_read_skip_step, 1);
      break;
    }
}


Generated by  Doxygen 1.6.0   Back to index