You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Look, you too can eliminate 65 and 71
If only 5, we lose 21.
Or wrong? The task was to find clusters so? Our numbers are only ordinal numbers. Only the delta matters.
You propose a method of solving the problem, which shows a decent result. However, I cannot yet decide which method is better, including accuracy.
The tightest is 40 and 42
Such a group we do not have ...
I'm telling you. A smaller delta will show a higher density.
The density of a single number in relation to its neighbour, yes, but not of a group...
I think it's pretty clear. If it's not. Then write me a criterion of density, what to understand by this value.
That's the thing, it's a matter of discussion...
Whether or not you need to consider the ratio of numbers in the group to each other - you just need to look at how many numbers fit in the range of the group. Earlier I gave two methods of calculation - which one is better - I don't know.
Can you explain the practical application to me?
Second paragraph https://www.mql5.com/ru/forum/163871#comment_3938228
The script now splits the numbers into groups (areas) and calculates the density for each group.
I think the code can be simplified without losing functionality - suggestions are welcome.