How is the curve is represented?  That's more important that its 
organ-of-origin. If you have values of y=f(x) at discrete time points, then 
y-(x+2) will change sign sometimes... the intersection point is at some time x' 
in between.  Am I missing something subtle here?
You could interpolate the time more precisely in many different ways, e.g., a 
spline -- read  help("spline").

-----Original Message-----
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of FMH
Sent: Tuesday, February 22, 2011 1:21 PM
To: r-help@r-project.org
Cc: lig...@statistik.tu-dortmund.de
Subject: [R] How to find points of intersection between harmonic function and a 
line

Hi,

Sorry for the very short explanation about the problem of intersection.

I have a wave function monitored from the heart beat in a particular interval of

times. Apart fom that, there is a line with positive slope (e.g: y = x+2) which
lies across the wave and intersect on a number of points. My problem is i have
no exact equation for such a complex harmonic wave produced by the heart pulse
and so, cannot manage to find the intersection points.


Therefore, i would be very grateful if someone could give some ideas or might
suggest any packages in  R that can assist me to do so.

Thank you,
Fir




______________________________________________
R-help@r-project.org 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, minimal, self-contained, reproducible code.




message may contain confidential information. If you are not the designated 
recipient, please notify the sender immediately, and delete the original and 
any copies. Any use of the message by you is prohibited. 
______________________________________________
R-help@r-project.org 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, minimal, self-contained, reproducible code.

Reply via email to