Ignore:
Timestamp:
Dec 15, 2005, 9:06:10 PM (16 years ago)
Author:
Peter
Message:

added approximative p-value calculation using Chi2, fixed some bugs, and extended the interface slightly

File:
1 edited

Legend:

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

    r448 r449  
    5858   
    5959    ///
     60    /// @return Chi2 score
     61    ///
     62    double Chi2(void) const;
     63
     64    ///
    6065    /// Cutoff sets the limit whether a value should go into the left
    6166    /// or the right column. @see score
     
    7782    /// a' = (a+c)(a+b)/(a+b+c+d)
    7883    ///
    79     void expected(double& a, double& b, double& c, double& d);
     84    void expected(double& a, double& b, double& c, double& d) const;
    8085
    8186    ///
     
    136141  private:
    137142    double oddsratio(const double a, const double b,
    138                      const double c, const double d) const;
     143                     const double c, const double d);
    139144
     145    // two-sided
    140146    double p_value_approximative(void) const;
     147    //two-sided
    141148    double p_value_exact(void) const;
    142149
     
    150157    double cutoff_row_;
    151158    u_int minimum_size_;
    152 
     159    double oddsratio_;
    153160  };
    154161
Note: See TracChangeset for help on using the changeset viewer.