Changeset 1683 for trunk/yat/statistics


Ignore:
Timestamp:
Dec 30, 2008, 4:42:06 PM (13 years ago)
Author:
Peter
Message:

prefer std::abs

Location:
trunk/yat/statistics
Files:
2 edited

Legend:

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

    r1487 r1683  
    3030#include "yat/utility/VectorBase.h"
    3131
     32#include <cmath>
     33
    3234namespace theplu {
    3335namespace yat {
     
    5254         
    5355    if (absolute_)
    54       return fabs(pos.mean()-neg.mean());
     56      return std::abs(pos.mean()-neg.mean());
    5557    return pos.mean()-neg.mean();
    5658  }
     
    6971         
    7072    if (absolute_)
    71       return fabs(pos.mean()-neg.mean());
     73      return std::abs(pos.mean()-neg.mean());
    7274    return pos.mean()-neg.mean();
    7375  }
     
    8789         
    8890    if (absolute_)
    89       return fabs(pos.mean()-neg.mean());
     91      return std::abs(pos.mean()-neg.mean());
    9092    return pos.mean()-neg.mean();
    9193  }
  • trunk/yat/statistics/WilcoxonFoldChange.cc

    r1487 r1683  
    5555    }
    5656    if (absolute_)
    57       return fabs(median(distance.begin(), distance.end()));
     57      return std::abs(median(distance.begin(), distance.end()));
    5858    return median(distance.begin(), distance.end());
    5959  }
     
    7575    }
    7676    if (absolute_)
    77       return fabs(median(distance.begin(), distance.end()));
     77      return std::abs(median(distance.begin(), distance.end()));
    7878    return median(distance.begin(), distance.end());
    7979   
Note: See TracChangeset for help on using the changeset viewer.