Ignore:
Timestamp:
Aug 31, 2006, 10:52:02 AM (16 years ago)
Author:
Jari Häkkinen
Message:

Removed gslapi namespace and put the code into utility namespace.
Move #ifndef _header_ idiom to top of touched header files.
Removed unneccesary #includes, and added needed #includes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/statistics/utility.cc

    r511 r616  
    1818  }
    1919
    20   double median(const gslapi::vector& vec, const bool sorted)
     20  double median(const utility::vector& vec, const bool sorted)
    2121  {
    2222    if (!sorted){
    23       gslapi::vector vec_copy(vec);
     23      utility::vector vec_copy(vec);
    2424      vec_copy.sort();
    2525      return gsl_stats_median_from_sorted_data (vec_copy.gsl_vector_p()->data,
     
    3232  }
    3333
    34   double percentile(const gslapi::vector& vec, const double p,
     34  double percentile(const utility::vector& vec, const double p,
    3535                    const bool sorted)
    3636  {
    3737    if (!sorted){
    38       gslapi::vector vec_c(vec);
     38      utility::vector vec_c(vec);
    3939      vec_c.sort();
    4040      return gsl_stats_quantile_from_sorted_data(vec_c.gsl_vector_p()->data,
Note: See TracChangeset for help on using the changeset viewer.