Re: [R] How to get correct integration in C for step function?

2007-01-22 Thread Lynette
Well, I have no idea either. I can get correct answers for continous functions but incorrect for step functions. Sign, I have been trying to realize the integration in C for long time. Thank you for your answering. Best, Lynette - Original Message - From: Thomas Lumley [EMAIL

Re: [R] How to get correct integration in C for step function?

2007-01-22 Thread Lynette
with the correct integration in C. Thank you all. And hope this helps to others. Best wishes, Lynette - Original Message - From: Lynette [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Cc: AJ Rossini [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, January 21, 2007 6:24 PM Subject: [R] How

[R] How to get correct integration in C for step function?

2007-01-21 Thread Lynette
); } return; } Please advise the problems. Thanks a lot. Best, Lynette __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

[R] how to realize integration in C?

2006-11-16 Thread Lynette Sun
to appear: Too many steps in routine qsimp . Anyone has any idea why this happens and are there better solutions for the integration realization? Thanks a lot! Best, Lynette Sun __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] how to realize integration in C?

2006-11-16 Thread Lynette Sun
Hi, Thank you for your suggestions. But I also realized I didn't make myself clear. I actually don't just need the integration results in R. The integration in C is part of my C codes. I need the integration results in C. How to realize that? Any suggestions? Thanks a lot! Best, Lynette

[R] Integration subroutine?

2006-03-13 Thread Lynette Sun
} integrate(fr,-1,2) works? 1.67 with absolute error 3.4e-05 Thanks. Lynette Sun Department of Statistics [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] exponential convolution (different lembdas)?

2005-11-04 Thread Lynette Sun
Anyone knows how to realize multiple exponential(different lembdas) convolutons in R or where I can find the final equation? Thanks. Best, Lynette __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] multidimensional integration not over a multidimensionalrectangle

2005-11-03 Thread Lynette Sun
, upper=x, n=n-1)$value } } I could get f(4,2)=4^2/2!=8, but failed in f(4,3)=4^3/3! Thanks Best, Lynette __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

[R] multidimensional integration not over a multidimensional rectangle

2005-11-01 Thread Lynette Sun
, upper=x, n=n-1)$value } } I could get f(4,2)=4^2/2!=8, but failed in f(4,3)=4^3/3! Thanks Best, Lynette __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R