Ignore:
Timestamp:
Feb 17, 2006, 1:02:57 AM (16 years ago)
Author:
Jari Häkkinen
Message:

Reverting these files to revision 505; these were changed by mistake.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/Target.cc

    r506 r507  
    1313namespace classifier {
    1414
    15   Target::Target(size_t n,int init_value,double)
    16   {
    17     vector_=std::vector<int>(n,init_value);
    18     myinit_classes();
    19   }
    20 
    2115  Target::Target(const std::vector<int>& vec)
    2216    : vector_(vec)
    2317  {
    24     myinit_classes();
     18    init_classes();
    2519  }
    2620 
     
    3226      vector_[i]=t(index[i]);
    3327    // Peter which of the two below do we want here?
    34     //    myinit_classes();
     28    //    init_classes();
    3529    classes_=t.classes_;
    3630  }
     
    110104    }
    111105
    112     myinit_classes();
     106    init_classes();
    113107  }
    114108 
     
    133127    for (size_t i=0; i<size(); i++)
    134128      vector_[i]*=d;
    135     myinit_classes();
     129    init_classes();
    136130    return *this;
    137131  }
     
    144138  }
    145139
    146   void Target::myinit_classes(void)
     140  void Target::init_classes(void)
    147141  {
    148142    classes_.clear();
Note: See TracChangeset for help on using the changeset viewer.