Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added hypothesis tests #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

added hypothesis tests #16

wants to merge 3 commits into from

Conversation

andrefmgutierrez
Copy link

added hypothesis tests into the structure with some related unit tests

Comment on lines 52 to 66
function z_value(M::Vector{T}, std::Vector{T}) where T
z= M./std
return z
end

function calc_p_value(z::Vector{T}, num_par::Int) where {T<:Real}
pvalue = zeros(num_par)
for (index, value) in enumerate(z)
if value<=0
value=-value
end
pvalue[index] = value
end
return 2*ccdf.(Normal(), pvalue)
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to the hypothsis_test.jl file

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@5495058). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #16   +/-   ##
=========================================
  Coverage          ?   87.50%           
=========================================
  Files             ?        3           
  Lines             ?       40           
  Branches          ?        0           
=========================================
  Hits              ?       35           
  Misses            ?        5           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5495058...fb10a42. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants