Changeset 1049 for trunk/yat/statistics
- Timestamp:
- Feb 7, 2008, 3:50:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/PearsonCorrelation.cc
r1024 r1049 50 50 double PearsonCorrelation::p_value_one_sided() const 51 51 { 52 if(nof_samples_<2){ 53 std::cerr << "Warning: Only " << nof_samples_ << "samples. " 54 << "Need at lest 3.\n"; 52 if(nof_samples_<=2) 55 53 return 1; 56 }57 54 58 55 double t = sqrt(nof_samples_ - 2)*fabs(r_) /sqrt(1-r_*r_);
Note: See TracChangeset
for help on using the changeset viewer.