Changeset 3043


Ignore:
Timestamp:
Jun 8, 2013, 3:19:37 PM (8 years ago)
Author:
Peter
Message:

avoid using deprecated functions in test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/ttest.cc

    r2919 r3043  
    3838
    3939int main(int argc, char* argv[])
    40 { 
     40{
    4141  test::Suite suite(argc, argv);
    4242
     
    4444  utility::Vector value(31);
    4545  std::vector<std::string> label(31,"positive");
    46   for (size_t i=0; i<16; i++) 
     46  for (size_t i=0; i<16; i++)
    4747    label[i] = "negative";
    4848  classifier::Target target(label);
    4949  target.set_binary(0,false);
    5050  target.set_binary(1,true);
    51   for (size_t i=0; i<value.size(); i++) 
     51  for (size_t i=0; i<value.size(); i++)
    5252    value(i)=i;
    5353  statistics::tTest test;
    5454  statistics::add(test, value.begin(), value.end(), target);
    55   double p = test.p_value_one_sided();
     55  double p = test.p_right();
    5656  double p2 = test.p_value();
    5757  if (!suite.equal(p2, 2*p) ){
Note: See TracChangeset for help on using the changeset viewer.