Ignore:
Timestamp:
Feb 20, 2007, 10:58:33 AM (15 years ago)
Author:
Peter
Message:

throw exception when detecting invalid 2x2 table. Fixes #26

File:
1 edited

Legend:

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

    r747 r760  
    124124    /// less than unity 1 divided by odds ratio is returned
    125125    ///
     126    /// @throw If table is invalid a runtime_error is thrown.
     127    ///
    126128    double score(const classifier::Target& target,
    127129                 const utility::vector& value);
     
    136138    /// @see score
    137139    ///
     140    /// @throw If table is invalid a runtime_error is thrown.
     141    ///
    138142    double score(const classifier::Target& target,
    139143                 const classifier::DataLookupWeighted1D& value);
     
    149153    /// @see score
    150154    ///
     155    /// @throw If table is invalid a runtime_error is thrown.
     156    ///
    151157    double score(const classifier::Target& target,
    152158                 const utility::vector& value,
     
    158164    /// @return odds ratio. If absolute_ is true and odds ratio is
    159165    /// less than unity, 1 divided by odds ratio is returned
     166    ///
     167    /// @throw If table is invalid a runtime_error is thrown.
    160168    ///
    161169    double score(const u_int a, const u_int b,
Note: See TracChangeset for help on using the changeset viewer.