Check -levmar-
Levenberg-Marquardt in C/C++
Type: Posts; User: TiagoPereira
Check -levmar-
Levenberg-Marquardt in C/C++
If your objective is to implement a nonlinear model already tested and parameterized, your task is not difficult. However, if you have a set of data, and want to find an equation, I recommend you to...
Just to follow up on my previous post: the NAG library costs around U$2,500 (Brazilian price; we have some additional taxes) plus "maintenance" (U$400,00), whereas the IMSL is cheaper: U$ 195 (no...
Yes, sure, please, see my post:
http://cboard.cprogramming.com/c-programming/129281-how-compute-natural-logarithm-factorial-large-numbers.html
No, no! Please, don't use that approximation for statistical tests!
If you want to implement a routine for other purposes, where you precision is not that important you can use it. If you need...
Yes, your results look fine, as long as you don't need an extreme precision. I have used this simple function to compute the exact P-value for a couple of statistical tests, and they match exactly...
Nice! Did you include the math.h library? I am under linux, so the commands to compile were:
gcc -Wall -I/usr/local/include -c lnfactorial.c
and then:
gcc -L/usr/local/lib lnfactorial.o ...
I guess I have solved this question with a simple function by noting the additive effects on the logarithm scale:
double lnfactorial( int a)
{
int y;
double z;
Hello all,
Is there a function in C to compute the natural logarithm of a factorial, say, log(factorial(646))?
In most statistical packages, such as R, the factorial can be computed up to 177...
Many thanks, guys!
John, I basically need everything is statistics. right now I am eager to find a function that computes the natural logarithm of large factorials. For example, in R it is...
Why's that?
Thank you so much! This is a step further: I did not know that there were commercial libraries with statistical functions. My R world is too free to think about that.
The commercial prices are,...
Dear all,
Although I am very new to the C programming language, I am really, but really happy with its capacities compared to standard statistical packages (much, much faster for large scale...
Thank you very much! worked like a charm!
Don't waste your time with that tutorial, buy the book: Sams Teach yourself C in 21 days, and learn C with success.
Dear all,
I am writing a simple program that performs some statistical calculations. The code looks like:
#include <stdio.h>
#include <math.h>
Many, many thanks! Your tips were really helpful, guys!
I have installed all libraries (MingGW), updated the built-essential, etc.. etc... without success, however. Then, I solved the problem...
tiago@tiago-laptop:~/Desktop$ head hwe.c
#include <stdio.h>
#include <math.h>
int x, n;
float f_A;
float chi2 = 0;
int genotype[4];
int expected[4];
Thanks, but the same error still remains I speak R and Stata. So, I am very used to lists. Before posting a question, it stands to logic that I google around the problem.
Dear all,
I just have written my very first C code, and, as everybody else, got an error during compiling.
on terminal (linux, ubuntu):
gcc hwe.c -lm hwe
gcc: hwe: No such file or directory...