Ignore:
Timestamp:
Dec 18, 2006, 1:47:44 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #65 and #170.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/utility.cc

    r683 r703  
    3737      p+= gsl_ran_hypergeometric_pdf(i, n1, n2, t);
    3838    return p;
     39  }
     40
     41  double kurtosis(const utility::vector& v)
     42  {
     43    const gsl_vector* gvp=v.gsl_vector_p();
     44    return gsl_stats_kurtosis(gvp->data,gvp->stride,gvp->size);
    3945  }
    4046
     
    8288  }
    8389
     90  double skewness(const utility::vector& v)
     91  {
     92    const gsl_vector* gvp=v.gsl_vector_p();
     93    return gsl_stats_skew(gvp->data,gvp->stride,gvp->size);
     94  }
     95
    8496}}} // of namespace statistics, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.