2 years ago
#22947
Scorekaj22
Finding and removing only positive outliers in an array of numbers in PHP
This question is extending this old question.
I have an array of numbers like this in PHP:
$numbers = [
1.2,
3.5,
3.1,
3.1,
8.0,
9.0
];
In PHP, I am trying to find the outliers in this highest end of this array.
As you can see, the anomalies are then
8.0,
9.0
So i do not want to remove
1.2
The old question finds outliers in both ends of the number series. I am trying to find and remove the positive outliers in any array in PHP.
php
anomaly-detection
0 Answers
Your Answer