Changeset 789 for trunk/yat/statistics


Ignore:
Timestamp:
Mar 10, 2007, 9:07:13 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #193. vector now works as outlined here. Added some
functionality. Added a clone function that facilitates resizing of
vectors. clone is needed since assignement operator functionality is
changed.

File:
1 edited

Legend:

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

    r779 r789  
    5454  {
    5555    assert(target.size()==value.size());
    56     utility::vector a;
     56    utility::vector a(value.size());
    5757    classifier::convert(value,a);
    5858    return score(target,a);
     
    6464  {
    6565    assert(target.size()==value.size());
    66     utility::vector a;
    67     utility::vector b;
     66    utility::vector a(value.size());
     67    utility::vector b(value.size());
    6868    classifier::convert(value,a,b);
    6969    return score(target,a,b);
     
    7575                      const classifier::DataLookup1D& weight) const
    7676  {
    77     utility::vector a;
     77    utility::vector a(value.size());
    7878    classifier::convert(value,a);
    79     utility::vector b;
     79    utility::vector b(value.size());
    8080    classifier::convert(weight,a);
    8181    return score(target,a,b);
Note: See TracChangeset for help on using the changeset viewer.