Changeset 1024


Ignore:
Timestamp:
Feb 1, 2008, 7:18:21 PM (14 years ago)
Author:
Peter
Message:

passing VectorBase? in regression::PearsonCorrelation? - refs #256

Location:
trunk/yat/statistics
Files:
2 edited

Legend:

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

    r1000 r1024  
    2828#include "AveragerPair.h"
    2929#include "AveragerPairWeighted.h"
    30 #include "yat/utility/vector.h"
     30#include "yat/utility/VectorBase.h"
    3131#include "yat/classifier/DataLookupWeighted1D.h"
    3232#include "yat/classifier/Target.h"
     
    6161
    6262  double PearsonCorrelation::score(const classifier::Target& target,
    63                                    const utility::vector& value)
     63                                   const utility::VectorBase& value)
    6464  {
    6565    nof_samples_ = value.size();
     
    7979
    8080  double PearsonCorrelation::score(const classifier::Target& target,
    81                                    const utility::vector& value,
    82                                    const utility::vector& weight)
     81                                   const utility::VectorBase& value,
     82                                   const utility::VectorBase& weight)
    8383  {
    8484    // Peter what should nof_samples be in weighted case?
  • trunk/yat/statistics/PearsonCorrelation.h

    r1006 r1024  
    3232namespace yat {
    3333namespace utility {
    34   class vector;
    35 }
    36 namespace classifier {
    37   class VectorAbstract;
     34  class VectorBase;
    3835}
    3936namespace statistics {
     
    6360    */
    6461    double score(const classifier::Target& target,
    65                  const utility::vector& value);
     62                 const utility::VectorBase& value);
    6663   
    6764    /**
     
    8784    */
    8885    double score(const classifier::Target& target,
    89                  const utility::vector& value,
    90                  const utility::vector& weight);
     86                 const utility::VectorBase& value,
     87                 const utility::VectorBase& weight);
    9188   
    9289    /**
Note: See TracChangeset for help on using the changeset viewer.