Ignore:
Timestamp:
Feb 24, 2008, 2:59:27 AM (14 years ago)
Author:
Peter
Message:

iterators in PearsonCorrelation? interface

File:
1 edited

Legend:

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

    r1049 r1139  
    5757  }
    5858
    59   double PearsonCorrelation::score(const classifier::Target& target,
    60                                    const utility::VectorBase& value)
    61   {
    62     nof_samples_ = value.size();
    63     Pearson pearson;
    64     return pearson.score(target,value);
    65   }
    66    
    67   double
    68   PearsonCorrelation::score(const classifier::Target& target,
    69                             const classifier::DataLookupWeighted1D& value)
    70   {
    71     // Peter what should nof_samples be in weighted case?
    72     nof_samples_=0;
    73     Pearson pearson;
    74     return pearson.score(target,value);
    75   }
    76 
    77   double PearsonCorrelation::score(const classifier::Target& target,
    78                                    const utility::VectorBase& value,
    79                                    const utility::VectorBase& weight)
    80   {
    81     // Peter what should nof_samples be in weighted case?
    82     nof_samples_ = 0;
    83     Pearson pearson;
    84     return pearson.score(target,value);
    85   }
    86 
    8759}}} // of namespace statistics, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.