Link to home
Start Free TrialLog in
Avatar of Member_2_99151
Member_2_99151

asked on

Does anyone know an algorithm to detect peak trends in a graph?

Hi all,

I have a C# Windows Forms application that has a graphical component.
In here a simple line graph is displayed from a series of data.
I would like a routine to detect the peak value within this graph.
In the following Graph:

 User generated image
I would like it to return the maximum value in the area highlighted...
Any ideas how I might go about doing this?
Any help would really be appreciated.

Best regards,

James
Avatar of Bill Nolan
Bill Nolan
Flag of United States of America image

Simply scan the data from X_Start to X_End and save the largest Y value.
Avatar of Member_2_99151
Member_2_99151

ASKER

Hi,
I think I probably worded my question badly...
I am after the peak trend in a graph, not just the highest point.
As the graph shows, there are several spikes, however the area I am interested in is a prolonged period of 'activity'...
I'm sure there is a statistical term for this, but I have no idea what it is!
Thanks,
James
ASKER CERTIFIED SOLUTION
Avatar of Bardobrave
Bardobrave
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Bardobrave,

Your solution sounds like exactly what I am after!!!
Thanks a lot  :-)

Best regards,

James