Changeset 1049 for trunk/yat/statistics


Ignore:
Timestamp:
Feb 7, 2008, 3:50:38 PM (16 years ago)
Author:
Peter
Message:

replaced some cerr outputs with exception throws - refs #189

File:
1 edited

Legend:

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

    r1024 r1049  
    5050  double PearsonCorrelation::p_value_one_sided() const
    5151  {
    52     if(nof_samples_<2){
    53       std::cerr << "Warning: Only " << nof_samples_ << "samples. "
    54                 << "Need at lest 3.\n";
     52    if(nof_samples_<=2)
    5553      return 1;
    56     }
    5754
    5855    double t = sqrt(nof_samples_ - 2)*fabs(r_) /sqrt(1-r_*r_);
Note: See TracChangeset for help on using the changeset viewer.