Skip to content

Commit 9eb3af5

Browse files
committed
Fix getWhiteNoise
sqrt(calcSigma2(C_Q_, C_N_, C_B_, C_K_, C_R_, 1 ) and getN() produce almost the same result (because N dominates the function at tau=1), but using the estimated N is correct.
1 parent f53a3fc commit 9eb3af5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/acc_lib/fitallan_acc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ FitAllanAcc::getBiasInstability( ) const
123123
double
124124
FitAllanAcc::getWhiteNoise( ) const
125125
{
126-
return sqrt(freq_ ) * sqrt(calcSigma2(C_Q_, C_N_, C_B_, C_K_, C_R_, 1 ) );
126+
return sqrt(freq_ ) * getN( );
127127
}
128128

129129
std::vector< double >

src/gyr_lib/fitallan_gyr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ FitAllanGyr::getBiasInstability( ) const
125125
double
126126
FitAllanGyr::getWhiteNoise( ) const
127127
{
128-
return sqrt(freq_ ) * sqrt(calcSigma2(C_Q_, C_N_, C_B_, C_K_, C_R_, 1 ) );
128+
return sqrt(freq_ ) * getN( );
129129
}
130130

131131
double

0 commit comments

Comments
 (0)