By a shape I mean one with a enclosed area. One example can be with $x^2+y^2+\sin{4x}+\sin{4y}=4$. I am dealing with implicit relations on a 2-d plane.
By the "ray length" I mean the length of the line segment from any chosen point inside the enclosed area to a point on the boundary of the shape.
Just in case you do not know how to find the average ray length you can start by converting an implicit relation into polar form. Just substitute $x=r\cos{\theta}$ and $y=r\sin{\theta}$ in $f(x,y)=0$.
Then to choose a point inside an implicit relation just convert $f(x+u,y+v)=0$ (because we want our chosen point at the pole) and with substitution get $f(r\cos\theta+u,r\sin\theta+v)$. From here you solve for $r$ In terms of $\theta$ $u$ and $v$ as $r=g(\theta)$ then take the area as $\frac{1}{2\pi}\int_{0}^{2{\pi}}g(\theta){d\theta}$ and find the $u$ and $v$ (u,v) with the greatest area. If this is not possible you could implicitly find the area under $f(r\cos\theta+u,r\sin\theta+v){d\theta}$ ,where $r>0$ and the area between $0<\theta<2\pi$. Then divide the area by $2\pi$ and once again find the $u$ and $v$ in point (u,v) with the greatest area.
(If you are not clear with how the area should be calculated treat the polar equation as cartesian implicit function. Replace $r=y$ and $\theta=x$ to get $f(y\cos{x}+u,y\sin{x}+v)$ and then proceed.
Here is an example with the circle https://files.acrobat.com/a/preview/38a501f2-5b63-4b76-b720-6cadb9c3e142
The centroid can be found online in https://en.wikipedia.org/wiki/Centroid.
When it came to a circle and ellipse I found the point of "highest average ray length" and "center of mass" to be the same. However I am not sure how to figure this out with more complicated implicit relations like $x^2+y^2+\sin{4x}+\sin{4y}=4$. Are there any approaches to finding the difference using calculus or numerical integration?
I have confused you with the definition of mean radius with the average ray length. When people think of average radius they think of "average squared minimized" or mean radius.
What I am focusing on was more of average ray length, where a ray is from a point inside an enclosed shape point on the boundary of the shape. Then as the angle of the ray (in radians) shifts from $0$ to $2\pi$ the ray length for each $\theta$ created a "ray function" or $r(\theta)$. I want find the average of that ray function from $0$ to $2\pi$.
$$\frac{1}{2\pi}\int_{0}^{2\pi}r(\theta)$$
I asked a similar question here where the user @Rahul understood what I meant and gave a better explanation.
"Suppose the curve is star-shaped with respect to your center point $\mathbf p=(u,v)$, so that any ray emanating from $\mathbf p$ meets the curve exactly once, at say point $\mathbf q$. Then $r = \|\mathbf q - \mathbf p\|$, $\theta$ is the angle between $\mathbf q-\mathbf p$ and the $x$-axis, and the average radius is" $$\frac1{2\pi}\oint_{\mathbf q\in\mathcal C}\|\mathbf q-\mathbf p\|\,\mathrm d\theta.$$
Using a software technique he was able to find the point with the highest average ray length for $x^2+y^2+\sin(4x)+\sin(4y)=4$. While the centroid was $(-.163523,-.070653)$ the point of highest average ray length is $(-.052594,-.052505)$.
Despite this counter-example I found for circles, ellipses, rectangles and many simpler enclosed shapes; the centroid is the point with the highest average ray length.