1 | #ifndef _theplu_statistics_foldchange_ |
---|

2 | #define _theplu_statistics_foldchange_ |
---|

3 | |
---|

4 | // $Id: FoldChange.h 616 2006-08-31 08:52:02Z jari $ |
---|

5 | |
---|

6 | #include "Score.h" |
---|

7 | |
---|

8 | namespace theplu { |
---|

9 | |
---|

10 | class utility::vector; |
---|

11 | |
---|

12 | |
---|

13 | namespace statistics { |
---|

14 | |
---|

15 | /// |
---|

16 | /// @brief FoldChange |
---|

17 | /// |
---|

18 | /// This score is simply given by the difference by the group means. |
---|

19 | /// |
---|

20 | class FoldChange : public Score |
---|

21 | { |
---|

22 | public: |
---|

23 | |
---|

24 | /// |
---|

25 | /// @brief Default Constructor |
---|

26 | /// |
---|

27 | FoldChange(bool absolute=true); |
---|

28 | |
---|

29 | /// |
---|

30 | /// @return difference of the means of the two classes |
---|

31 | /// |
---|

32 | /// @param target is +1 or -1 |
---|

33 | /// @param value vector of the values |
---|

34 | /// |
---|

35 | double score(const classifier::Target& target, |
---|

36 | const utility::vector& value); |
---|

37 | |
---|

38 | /// |
---|

39 | /// @return difference of the weighted means of the two classes |
---|

40 | /// |
---|

41 | /// @param target is +1 or -1 |
---|

42 | /// @param value vector of the values |
---|

43 | /// @param weight vector of accompanied weight to the values |
---|

44 | /// @train_set defining which values to use (number of values used |
---|

45 | /// in the calculation is equal to size of \a train_set) |
---|

46 | /// |
---|

47 | double score(const classifier::Target& target, |
---|

48 | const utility::vector& value, |
---|

49 | const utility::vector& weight); |
---|

50 | |
---|

51 | private: |
---|

52 | |
---|

53 | /// |
---|

54 | /// @brief Copy Constructor |
---|

55 | /// |
---|

56 | FoldChange(const FoldChange&); |
---|

57 | |
---|

58 | /// |
---|

59 | /// @brief Assignment operator |
---|

60 | /// |
---|

61 | FoldChange& operator=(const FoldChange&); |
---|

62 | |
---|

63 | }; |
---|

64 | |
---|

65 | } // of namespace statistics |
---|

66 | } // of namespace theplu |
---|

67 | |
---|

68 | #endif |
---|