Error with `non_central_chi_squared::find_degrees_of_freedom` when running with Valgrind
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start at non_central_chi_squared::find_degrees_of_freedom and reproduce the R-C++ wrapper call under Valgrind using the reported delta, q, and p arguments. Trace where the degrees-of-freedom value becomes NaN; done means explaining the failure and identifying the affected behavior or fix.
Written by the indexing model from the issue text.
Description
Hello,
I ported the function non_central_chi_squared::find_degrees_of_freedom to a R package. My R-C++ function is just:
double find_chisq_df(double delta, double q, double p){
// gives nu such that pchisq(q, nu, delta) = p
return non_central_chi_squared::find_degrees_of_freedom(delta, q, p);
}
When an example is executed under Valgrind, this error is generated:
Error in function boost::math::non_central_chi_squared_distribution<long double>::non_central_chi_squared_distribution(long double,long double): Degrees of freedom argument is -nan, but must be > 0 !
Would you have an idea of the cause? I'm really not fluent in C++.
- Dominant language
- C++
- Stars
- 42
- Forks
- 76
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/random
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Documentation
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·