Answer the question
In order to leave comments, you need to log in
How to find a similar trend on a chart?
Guys. The task is this. There is a schedule. And you need to find a certain trend on the chart. For example:
There is a schedule. The data is pulled from the mysql database.
How to describe such a trend and how to find it later?
How to set a specific search pattern?
How can this be done in js + php and is it even possible to do this?
Answer the question
In order to leave comments, you need to log in
Try THIS
Don't forget to mark the answer as a solution.
Thank you.
Try to search by the rate of change, the equation for the rate of change, I think it's clear. If the directions are the same, and the speed delta is within a certain value, then most likely it will find these areas of the graph. But this is inaccurate, you need to check.
Just sharp jumps can be found by the 1st derivative (dy/dx). Move in a relatively narrow "window", take its average value and compare with the "previous" window.
A more complex similitude - a period of stagnation, and then a sharp increase - a second requirement is added that the peak in the 1st derivative is preceded by a relatively long near-zero.
To get started, draw yourself a graph of a differentiated value and see visually what interests you in it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question