-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Add functions for the 1st, 2nd3rd and 4th cumulants
- Loading branch information
1 parent
898b97a
commit 512a341
Showing
5 changed files
with
340 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
## New features | ||
1. Add functions for the 1st, 2nd3rd and 4th cumulants | ||
|
||
## Backward incompatible | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,7 +84,7 @@ namespace Ostap | |
{ | ||
if ( Ostap::Math::inverse ( m_cov2 , m_vxi ) ) | ||
{ | ||
Ostap::throwException ( "Covariance matrix is not innvertile!" , | ||
Ostap::throwException ( "Covariance matrix is not innvertible!" , | ||
"Ostap::Math::Combine<>" , 730 ) ; | ||
} | ||
const Data& vone = this->units() ; | ||
|
@@ -131,7 +131,7 @@ namespace Ostap | |
// ====================================================================== | ||
public: | ||
// ====================================================================== | ||
/// the main method: get a combined value using the calculated weights | ||
/// the main method: get a combined value using the calculated weights | ||
Ostap::Math::ValueWithError result () const | ||
{ | ||
const double r = ROOT::Math::Dot ( m_data , m_w ) ; | ||
|
@@ -198,9 +198,47 @@ namespace Ostap | |
* @date 2015-09-28 | ||
*/ | ||
Ostap::Math::ValueWithError | ||
combine ( const double x , | ||
const double y , | ||
const Ostap::SymMatrix2x2& cov ) ; | ||
combine | ||
( const double x , | ||
const double y , | ||
const Ostap::SymMatrix2x2& cov ) ; | ||
// ======================================================================== | ||
/** combine three measurements <code>x</code>, <code>y</code> | ||
* and <code>z</code> with covarinace matrix <code>cov</code> | ||
* @param x (INPUT) the first measurement | ||
* @param y (INPUT) the second measurement | ||
* @param z (INPUT) the third measurement | ||
* @param cov (INPUT) covariance matrix | ||
* @return combined result | ||
* @author Vanya BELYAEV [email protected] | ||
* @date 2015-09-28 | ||
*/ | ||
Ostap::Math::ValueWithError | ||
combine | ||
( const double x , | ||
const double y , | ||
const double z , | ||
const Ostap::SymMatrix3x3& cov ) ; | ||
// ======================================================================== | ||
/** combine four measurements <code>x</code>, <code>y</code>, | ||
* <code>z</code> and <code>w</code> | ||
* with covarinace matrix <code>cov</code> | ||
* @param x (INPUT) the first measurement | ||
* @param y (INPUT) the second measurement | ||
* @param z (INPUT) the third measurement | ||
* @param w (INPUT) the fourth measurement | ||
* @param cov (INPUT) covariance matrix | ||
* @return combined result | ||
* @author Vanya BELYAEV [email protected] | ||
* @date 2015-09-28 | ||
*/ | ||
Ostap::Math::ValueWithError | ||
combine | ||
( const double x , | ||
const double y , | ||
const double z , | ||
const double w , | ||
const Ostap::SymMatrix4x4& cov ) ; | ||
// ======================================================================== | ||
/** combine two measurements <code>x1</code> and <code>x2</code> | ||
* using correlation coefficient <code>rho</code>: \f$-1\le\rho\le1\f$ | ||
|
Oops, something went wrong.