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

prefer std::abs

File:
1 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  }
Note: See TracChangeset for help on using the changeset viewer.