K
K
Kirill Gorelov2017-07-13 17:15:58
PHP
Kirill Gorelov, 2017-07-13 17:15:58

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.
f3a520067a6242d59f6b4a357e0d9b2e.jpg
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

4 answer(s)
S
senefu, 2017-07-13
@Kirill-Gorelov

Try THIS
Don't forget to mark the answer as a solution.
Thank you.

N
Nikolai Kargin, 2017-07-13
@kgnk

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.

S
Sergey Sokolov, 2017-07-13
@sergiks

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.

D
Dimonchik, 2017-07-13
@dimonchik2013

google Spearman's rank correlation coefficient

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question