Changeset 410


Ignore:
Timestamp:
Nov 30, 2005, 3:11:50 PM (18 years ago)
Author:
Peter
Message:

removed p-value from Score baseclass interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/statistics/Score.h

    r389 r410  
    3232
    3333    ///
     34    /// Function calculating the score. In absolute mode, also the
     35    /// score using negated class labels is calculated, and the
     36    /// largest of the two scores are calculated. Absolute mode should
     37    /// be used when two-tailed test is wanted.
     38    ///
    3439    /// @return statistica.
    3540    ///
     41    /// @param target is +1 or -1
     42    /// @param value vector of the values
     43    /// @train_set defining which values to use (number of values used
     44    /// in the calculation is equal to size of \a train_set)
     45    ///
    3646    virtual double
    37     score(const gslapi::vector&,
    38           const gslapi::vector&,
    39           const std::vector<size_t>& = std::vector<size_t>()) = 0;
     47    score(const gslapi::vector& target,
     48          const gslapi::vector& value,
     49          const std::vector<size_t>& train_set = std::vector<size_t>()) = 0;
    4050 
     51    ///
     52    /// Function calculating the weighted version of score. In
     53    /// absolute mode, also the score using negated class labels is
     54    /// calculated, and the largest of the two scores are
     55    /// calculated. Absolute mode should be used when two-tailed test
     56    /// is wanted.
    4157    ///
    4258    /// @return statistica (weighted version)
    4359    ///
     60    /// @param target is +1 or -1
     61    /// @param value vector of the values
     62    /// @param weight vector of accompanied weight to the values
     63    /// @train_set defining which values to use (number of values used
     64    /// in the calculation is equal to size of \a train_set)
     65    ///
    4466    virtual double
    45     score(const gslapi::vector&,
    46           const gslapi::vector&,
    47           const gslapi::vector&,
     67    score(const gslapi::vector& target,
     68          const gslapi::vector& value,
     69          const gslapi::vector& weight,
    4870          const std::vector<size_t>& = std::vector<size_t>()) = 0;
    4971
    5072    ///
    51     /// @return the ///one-sided p-value( if absolute true is used
     73    /// @return the one-sided p-value( if absolute true is used
    5274    /// this is equivalent to the two-sided p-value.)
    5375    ///
    54     virtual double p_value(void) const = 0;
     76    /// virtual double p_value(void) const = 0;
    5577 
    5678   
Note: See TracChangeset for help on using the changeset viewer.