This function calculates the median after taking the xAbsolute values of the points.
the array for which we want to calculate the absolute value
This function calculates the median after taking the xAbsolute values of the points.