Changeset 410
 Timestamp:
 Nov 30, 2005, 3:11:50 PM (18 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/lib/statistics/Score.h
r389 r410 32 32 33 33 /// 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 twotailed test is wanted. 38 /// 34 39 /// @return statistica. 35 40 /// 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 /// 36 46 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; 40 50 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 twotailed test 56 /// is wanted. 41 57 /// 42 58 /// @return statistica (weighted version) 43 59 /// 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 /// 44 66 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, 48 70 const std::vector<size_t>& = std::vector<size_t>()) = 0; 49 71 50 72 /// 51 /// @return the ///onesided pvalue( if absolute true is used73 /// @return the onesided pvalue( if absolute true is used 52 74 /// this is equivalent to the twosided pvalue.) 53 75 /// 54 virtual double p_value(void) const = 0;76 /// virtual double p_value(void) const = 0; 55 77 56 78
Note: See TracChangeset
for help on using the changeset viewer.