Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristopherson committed May 1, 2024
1 parent 571dafe commit 516bd7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/fstats_hypothesis.f90
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ pure function confidence_interval_scalar(dist, alpha, s, n) result(rst)
!! The result.

! Local Variables
real(real64) :: x
real(real64) :: x, dn

! Process
x = 1.0d0 - alpha / 2.0d0
dn = real(n, real64)
x = 1.0d0 - 0.5d0 * alpha
rst = dist%standardized_variable(x)
rst = rst * s / sqrt(real(n, real64))
rst = rst * s / sqrt(dn)
end function

! ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion tests/fstats_statistics_tests.f90
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ function confidence_interval_test_1() result(rst)
logical :: rst

! Variables
real(real64), parameter :: alpha = 2.0d0
real(real64), parameter :: alpha = 0.05d0
real(real64), parameter :: tol = 1.0d-3
real(real64), parameter :: t20 = 2.086d0
real(real64), parameter :: t10 = 2.228d0
Expand Down

0 comments on commit 516bd7d

Please sign in to comment.