Changeset 820 for trunk/yat/statistics
- Timestamp:
- Mar 17, 2007, 10:54:52 PM (17 years ago)
- Location:
- trunk/yat/statistics
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/AUC.cc
r810 r820 22 22 */ 23 23 24 #include " ROCScore.h"24 #include "AUC.h" 25 25 #include "yat/classifier/DataLookupWeighted1D.h" 26 26 #include "yat/classifier/Target.h" … … 37 37 namespace statistics { 38 38 39 ROCScore::ROCScore(bool absolute)39 AUC::AUC(bool absolute) 40 40 : Score(absolute) 41 41 { 42 42 } 43 43 44 double ROCScore::score(const classifier::Target& target,45 44 double AUC::score(const classifier::Target& target, 45 const utility::vector& value) const 46 46 { 47 47 assert(target.size()==value.size()); … … 57 57 58 58 59 double ROCScore::score(const classifier::Target& target,60 59 double AUC::score(const classifier::Target& target, 60 const classifier::DataLookupWeighted1D& value) const 61 61 { 62 62 assert(target.size()==value.size()); … … 73 73 74 74 75 double ROCScore::score(const classifier::Target& target,76 77 75 double AUC::score(const classifier::Target& target, 76 const utility::vector& value, 77 const utility::vector& weight) const 78 78 { 79 79 assert(target.size()==value.size()); … … 90 90 91 91 92 double 93 ROCScore::score(const MultiMap& m) const 92 double AUC::score(const MultiMap& m) const 94 93 { 95 94 double area=0; -
trunk/yat/statistics/AUC.h
r810 r820 1 #ifndef _theplu_yat_statistics_ roc_score_2 #define _theplu_yat_statistics_ roc_score_1 #ifndef _theplu_yat_statistics_auc_ 2 #define _theplu_yat_statistics_auc_ 3 3 4 4 // $Id$ … … 42 42 43 43 /// 44 /// @brief Class for Reciever Operating Characteristic.44 /// @brief Class calculating Area Under ROC Curve 45 45 /// 46 class ROCScore: public Score46 class AUC : public Score 47 47 { 48 48 … … 51 51 /// 52 52 /// 53 ROCScore(bool absolute=true);53 AUC(bool absolute=true); 54 54 55 55 /// Function taking \a value, \a target (+1 or -1) and vector -
trunk/yat/statistics/Makefile.am
r781 r820 24 24 25 25 noinst_LTLIBRARIES = libstatistics.la 26 libstatistics_la_SOURCES = A verager.cc AveragerPair.cc \26 libstatistics_la_SOURCES = AUC.cc Averager.cc AveragerPair.cc \ 27 27 AveragerWeighted.cc AveragerPairWeighted.cc Distance.cc \ 28 28 Euclidean.cc Fisher.cc FoldChange.cc Histogram.cc Pearson.cc \ 29 PearsonCorrelation.cc PearsonDistance.cc ROC.cc ROCScore.cc\29 PearsonCorrelation.cc PearsonDistance.cc ROC.cc \ 30 30 SAMScore.cc Score.cc SNR.cc tScore.cc tTest.cc \ 31 31 utility.cc WilcoxonFoldChange.cc … … 33 33 include_statisticsdir = $(includedir)/yat/statistics 34 34 35 include_statistics_HEADERS = A verager.h AveragerPair.h \35 include_statistics_HEADERS = AUC.h Averager.h AveragerPair.h \ 36 36 AveragerWeighted.h AveragerPairWeighted.h Distance.h Euclidean.h \ 37 37 Fisher.h \ 38 38 FoldChange.h Histogram.h Pearson.h PearsonCorrelation.h \ 39 PearsonDistance.h ROC.h ROCScore.h\39 PearsonDistance.h ROC.h \ 40 40 SAMScore.h Score.h SNR.h tScore.h tTest.h \ 41 41 utility.h WilcoxonFoldChange.h
Note: See TracChangeset
for help on using the changeset viewer.